ports/77028: net/jabber startup script not executable

Vivek Khera vivek at khera.org
Wed Feb 2 18:30:26 UTC 2005


>Number:         77028
>Category:       ports
>Synopsis:       net/jabber startup script not executable
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 02 18:30:24 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Vivek Khera
>Release:        FreeBSD 4.10-RELEASE i386
>Organization:
>Environment:
System: FreeBSD lorax.kcilink.com 4.10-RELEASE FreeBSD 4.10-RELEASE #20: Fri May 28 14:13:44 EDT 2004 vivek at lorax.kcilink.com:/u/lorax1/usr/obj/u/lorax1/usr/src/sys/LORAX i386


	
>Description:
	

I upgraded jabber from jabber-1.4.3.1 to jabber-1.4.3.1_1 and it left the
rc.d/jabber.sh script non-executable.

>How-To-Repeat:
	
>Fix:

	

install it executable :-)

also, the RUNDIR is bad to put in /var/tmp since that might get cleaned up.
jabber already is using /var/spool/jabber for its other data, so why not use
that?  this patch fixes this an also does a cleaner shutdown so you don't have
to manually remove the pid file.  of course you need to update your jabber.xml
file to point the pidfile to the right place.  /var/tmp is just wrong.

--- jabberd.sh.dist     Wed Feb  2 13:21:12 2005
+++ jabberd.sh  Wed Feb  2 13:22:15 2005
@@ -6,7 +6,7 @@
 fi

 USER="jabber"
-RUNDIR="/var/tmp"
+RUNDIR="/var/spool/jabber"
 HOSTNAME=`/bin/hostname`

 test -x ${PREFIX}/sbin/jabberd || exit 1
@@ -33,6 +33,5 @@
     su -f -m ${USER} -c "jabberd -B -h ${HOSTNAME} -c ${PREFIX}/etc/jabber.xml"
     ;;
 stop)
-    killall -SIGKILL -u ${USER} jabberd;
-    rm -f ${RUNDIR}/jabber.pid;
+    kill `cat ${RUNDIR}/jabber.pid`
 esac
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list