Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Jul 2004 09:48:33 -0500 (CDT)
From:      Kirk Strauser <kirk@strauser.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        Kirk Strauser <kirk@strauser.com>
Subject:   ports/69667: Update port: net/jabberd to comply with new rc.d script requirements
Message-ID:  <20040727144833.F3C58BA33@kanga.honeypot.net>
Resent-Message-ID: <200407271450.i6REoRNm081372@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         69667
>Category:       ports
>Synopsis:       Update port: net/jabberd to comply with new rc.d script requirements
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 27 14:50:27 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Kirk Strauser
>Release:        FreeBSD 5.2-CURRENT i386
>Organization:
The Day Companies
>Environment:
System: FreeBSD kanga.honeypot.net 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Thu Apr 8 15:37:48 CDT 2004 root@kanga.honeypot.net:/usr/obj/usr/src/sys/NEW_KANGA i386


	
>Description:
This patches the rc.d/jabberd.sh script to comply with the new behavior of
/etc/rc.d/localpkg  (see
<URL:http://lists.freebsd.org/pipermail/freebsd-current/2004-July/032337.html>;
for details).
	
>How-To-Repeat:
	
>Fix:

	

--- jabberd.patch begins here ---
diff -urN /usr/ports/net/jabberd/files/jabberd.sh jabberd/files/jabberd.sh
--- /usr/ports/net/jabberd/files/jabberd.sh	Thu Jul 15 05:46:00 2004
+++ jabberd/files/jabberd.sh	Tue Jul 27 09:37:01 2004
@@ -16,10 +16,9 @@
 #
 # 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 @@
 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
--- jabberd.patch ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040727144833.F3C58BA33>