diff options
author | jlam <jlam@pkgsrc.org> | 2003-01-01 07:03:40 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2003-01-01 07:03:40 +0000 |
commit | 3380df32a888e4fb8c848f22286986f0a0e06720 (patch) | |
tree | 0cbfed6ab0a6c2636343525e48509b59f0b5fb44 /www/iasp/files/iasp_admin.sh | |
parent | 84fdda095c86855298bdf2fe3cda68143cece679 (diff) | |
download | pkgsrc-3380df32a888e4fb8c848f22286986f0a0e06720.tar.gz |
Initial import of www/iasp.
Instant ASP (iASP) is a portable Active Server framework that allows
deploying Active Server Pages (ASP) on any Java technology-enabled web
server.
This package contains the developer's version of iASP, which may be
fully licensed into the Enterprise iASP Edition.
Diffstat (limited to 'www/iasp/files/iasp_admin.sh')
-rw-r--r-- | www/iasp/files/iasp_admin.sh | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/www/iasp/files/iasp_admin.sh b/www/iasp/files/iasp_admin.sh new file mode 100644 index 00000000000..f6f485d6087 --- /dev/null +++ b/www/iasp/files/iasp_admin.sh @@ -0,0 +1,35 @@ +#!@RCD_SCRIPTS_SHELL@ +# +# $NetBSD: iasp_admin.sh,v 1.1.1.1 2003/01/01 07:03:42 jlam Exp $ +# +# PROVIDE: iasp_admin +# REQUIRE: iasp +# KEYWORD: shutdown + +if [ -f /etc/rc.subr ]; then + . /etc/rc.subr +fi + +name="iasp_admin" +rcvar=$name +start_cmd=iasp_admin_start +stop_cmd=iasp_admin_stop + +iasp_admin_start() +{ + @IASP@/start-admin.sh & + sleep 2 +} + +iasp_admin_stop() +{ + @IASP@/stop-admin.sh +} + +if [ -f /etc/rc.subr -a -f /etc/rc.conf -a -d /etc/rc.d -a -f /etc/rc.d/DAEMON ] +then + load_rc_config $name + run_rc_command "$1" +else + eval ${start_cmd} +fi |