diff options
Diffstat (limited to 'www/zope3/files/zope3.sh')
-rw-r--r-- | www/zope3/files/zope3.sh | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/www/zope3/files/zope3.sh b/www/zope3/files/zope3.sh index 034452e5e44..f0529d4196f 100644 --- a/www/zope3/files/zope3.sh +++ b/www/zope3/files/zope3.sh @@ -1,12 +1,12 @@ #!@RCD_SCRIPTS_SHELL@ # -# $NetBSD: zope3.sh,v 1.2 2006/01/07 13:13:28 wiz Exp $ +# $NetBSD: zope3.sh,v 1.3 2006/05/06 22:38:28 wiz Exp $ # # PROVIDE: zope3 # REQUIRE: DAEMON # KEYWORD: shutdown -$_rc_subr_loaded . /etc/rc.subr +$_rc_subr_loaded . /etc/rc.subr name="zope3" rcvar=$name @@ -30,20 +30,24 @@ zope3_precmd() { err 1 "${_dir} is not a directory." fi done - if test "${zope3_user}"; then - command_args="${command_args} --user ${zope3_user}" + if test -z "${zope3_user}"; then + zope3_user="@ZOPE3_USER@" fi + command_args="${command_args} --user ${zope3_user}" } zope3_start() { + echo -n "Starting Zope Application Server: " ${command} ${rc_flags} ${command_args} start } zope3_stop() { + echo -n "Stopping Zope Application Server: " ${command} ${rc_flags} ${command_args} stop } zope3_restart() { + echo -n "Restarting Zope Application Server: " ${command} ${rc_flags} ${command_args} restart } |