From fd509de3ba88834f603fd30068040d7bb63a554e Mon Sep 17 00:00:00 2001 From: pav Date: Thu, 29 Jul 2004 20:56:33 +0000 Subject: - Adapt rc script to latest localpkg changes PR: ports/69667 Submitted by: Kirk Strauser (maintainer) --- net/jabberd/files/jabberd.sh | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'net') diff --git a/net/jabberd/files/jabberd.sh b/net/jabberd/files/jabberd.sh index 7dff2f2898d2..a6ad5b405315 100644 --- a/net/jabberd/files/jabberd.sh +++ b/net/jabberd/files/jabberd.sh @@ -1,7 +1,7 @@ #!/bin/sh # Start or stop jabberd -# $FreeBSD: /tmp/pcvs/ports/net/jabberd/files/Attic/jabberd.sh,v 1.4 2004-07-15 10:46:00 vs Exp $ +# $FreeBSD: /tmp/pcvs/ports/net/jabberd/files/Attic/jabberd.sh,v 1.5 2004-07-29 20:56:33 pav Exp $ # PROVIDE: jabberd # REQUIRE: DAEMON @@ -16,10 +16,9 @@ prefix=%%PREFIX%% # # DO NOT CHANGE THESE DEFAULT VALUES HERE # -jabberd_chdir="/var/jabberd/pid" -jabberd_enable="NO" -jabberd_flags="" -jabberd_user="jabber" +jabberd_chdir=${jabberd_chdir-"/var/jabberd/pid"} +jabberd_enable=${jabberd_enable-"NO"} +jabberd_user=${jabberd_user-"jabber"} . %%RC_SUBR%% @@ -34,7 +33,7 @@ load_rc_config $name pidfile="${jabberd_chdir}/router.pid" case "$1" in - stop) + stop|faststop|onestop) echo "Stopping Jabber2" killall -u ${jabberd_user} jabberd c2s resolver router s2s sm for file in c2s resolver router s2s sm; do -- cgit