SOURCES: ircd-ptlink.init - use killproc with the pidfile

aredridel aredridel at pld-linux.org
Tue Apr 24 00:08:17 CEST 2007


Author: aredridel                    Date: Mon Apr 23 22:08:16 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- use killproc with the pidfile

---- Files affected:
SOURCES:
   ircd-ptlink.init (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: SOURCES/ircd-ptlink.init
diff -u SOURCES/ircd-ptlink.init:1.2 SOURCES/ircd-ptlink.init:1.3
--- SOURCES/ircd-ptlink.init:1.2	Fri Feb 18 04:53:05 2005
+++ SOURCES/ircd-ptlink.init	Tue Apr 24 00:08:11 2007
@@ -33,7 +33,7 @@
 	if [ ! -f /var/lock/subsys/ircd ]; then
 		# Start daemons.
 		msg_starting "IRCd Server"
-		daemon su ircd -c ircd
+		daemon --user ircd ircd
 		touch /var/lock/subsys/ircd
 	else
 		msg_already_running "IRCd Server"
@@ -44,19 +44,19 @@
 	if [ -f /var/lock/subsys/ircd ]; then
 		# Stop daemons.
 		msg_stopping "IRCd Server"
-		killproc ircd
+		killproc --pidfile /var/run/ircd.pid ircd
 		rm -f /var/run/ircd.pid /var/lock/subsys/ircd >/dev/null 2>&1
 	else
 		msg_already_running "IRCd Server"
 	fi
 	;;
   restart|force-reload)
-  	$0 stop
+  $0 stop
 	$0 start
 	exit $?
 	;;
   status)
-  	status ircd
+  status ircd
 	exit $?
 	;;
   *)
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/ircd-ptlink.init?r1=1.2&r2=1.3&f=u



More information about the pld-cvs-commit mailing list