1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00

- Adapt rc script to latest localpkg changes

PR:		ports/69667
Submitted by:	Kirk Strauser <kirk@strauser.com> (maintainer)
This commit is contained in:
Pav Lucistnik 2004-07-29 20:56:33 +00:00
parent 1cc403093e
commit c2e7942b45
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=115034
2 changed files with 10 additions and 12 deletions

View File

@ -1,7 +1,7 @@
#!/bin/sh
# Start or stop jabberd
# $FreeBSD: /tmp/pcvs/ports/net-im/jabberd/files/Attic/jabberd.sh,v 1.4 2004-07-15 10:46:00 vs Exp $
# $FreeBSD: /tmp/pcvs/ports/net-im/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

View File

@ -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