diff options
author | jlam <jlam@pkgsrc.org> | 2003-01-02 06:40:32 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2003-01-02 06:40:32 +0000 |
commit | 89fcd02fac594d7b0f01bd59d1a6f1508ec74be2 (patch) | |
tree | a21e363233793f2a3cfa664073b69fb60cac3105 /www/iasp/files | |
parent | cf86a8c1f938b0bd8a82db1fc659ff9bd65b0abb (diff) | |
download | pkgsrc-89fcd02fac594d7b0f01bd59d1a6f1508ec74be2.tar.gz |
Require a iasp user and group (defaulting to APACHE_{USER,GROUP}) and
run the iASP proxy server as that user for improved security. Bump
PKGREVISION on www/iasp to 1.
Diffstat (limited to 'www/iasp/files')
-rw-r--r-- | www/iasp/files/gen-scripts.sh | 12 | ||||
-rw-r--r-- | www/iasp/files/iasp.sh | 5 |
2 files changed, 9 insertions, 8 deletions
diff --git a/www/iasp/files/gen-scripts.sh b/www/iasp/files/gen-scripts.sh index 5bc7e89fe30..88b54885332 100644 --- a/www/iasp/files/gen-scripts.sh +++ b/www/iasp/files/gen-scripts.sh @@ -1,6 +1,6 @@ #!/bin/sh # -# $NetBSD: gen-scripts.sh,v 1.1.1.1 2003/01/01 07:03:42 jlam Exp $ +# $NetBSD: gen-scripts.sh,v 1.2 2003/01/02 06:40:33 jlam Exp $ IASP_CLASSPATH= for classpath in ${WRKSRC}/lib/*.jar ${WRKSRC}/servlets; do @@ -58,32 +58,32 @@ ${CAT} > ${WRKSRC}/start-server.sh << EOF . ${IASP}/iasp-common.conf eval exec \${JAVA} servlet.http.HttpServer EOF -chmod u+x ${WRKSRC}/start-server.sh +${CHMOD} 555 ${WRKSRC}/start-server.sh ${CAT} > ${WRKSRC}/stop-server.sh << EOF #!${SH} . ${IASP}/iasp-common.conf eval exec \${JAVA} servlet.http.HttpServerControl webserver EOF -chmod u+x ${WRKSRC}/stop-server.sh +${CHMOD} 555 ${WRKSRC}/stop-server.sh ${CAT} > ${WRKSRC}/start-admin.sh << EOF #!${SH} . ${IASP}/iasp-common.conf eval exec \${JAVA} servlet.webserver.WebHttpServer EOF -chmod u+x ${WRKSRC}/start-admin.sh +${CHMOD} 555 ${WRKSRC}/start-admin.sh ${CAT} > ${WRKSRC}/stop-admin.sh << EOF #!${SH} . ${IASP}/iasp-common.conf eval exec \${JAVA} servlet.http.HttpServerControl adminserver EOF -chmod u+x ${WRKSRC}/stop-admin.sh +${CHMOD} 555 ${WRKSRC}/stop-admin.sh ${CAT} > ${WRKSRC}/connector.sh << EOF #!${SH} . ${IASP}/iasp-common.conf eval exec \${JAVA} connector.iasp_connector EOF -chmod u+x ${WRKSRC}/connector.sh +${CHMOD} 555 ${WRKSRC}/connector.sh diff --git a/www/iasp/files/iasp.sh b/www/iasp/files/iasp.sh index 8b1357630af..a706904d09c 100644 --- a/www/iasp/files/iasp.sh +++ b/www/iasp/files/iasp.sh @@ -1,6 +1,6 @@ #!@RCD_SCRIPTS_SHELL@ # -# $NetBSD: iasp.sh,v 1.1.1.1 2003/01/01 07:03:42 jlam Exp $ +# $NetBSD: iasp.sh,v 1.2 2003/01/02 06:40:33 jlam Exp $ # # PROVIDE: iasp # REQUIRE: DAEMON @@ -12,12 +12,13 @@ fi name="iasp" rcvar=$name +iasp_user="@IASP_USER@" start_cmd=iasp_start stop_cmd=iasp_stop iasp_start() { - @IASP@/start-server.sh & + @SU@ -m ${iasp_user} -c "exec @IASP@/start-server.sh" & sleep 2 } |