SOURCES: argus.init, argus.sysconfig - fix options for daemon mode

alucard alucard at pld-linux.org
Thu Mar 1 12:49:36 CET 2007


Author: alucard                      Date: Thu Mar  1 11:49:36 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- fix options for daemon mode

---- Files affected:
SOURCES:
   argus.init (1.5 -> 1.6) , argus.sysconfig (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: SOURCES/argus.init
diff -u SOURCES/argus.init:1.5 SOURCES/argus.init:1.6
--- SOURCES/argus.init:1.5	Tue Feb 27 21:59:08 2007
+++ SOURCES/argus.init	Thu Mar  1 12:49:30 2007
@@ -7,6 +7,9 @@
 # Source function library.
 . /etc/rc.d/init.d/functions
 
+# Get network config
+. /etc/sysconfig/network
+
 # Get service config
 [ -f /etc/sysconfig/argus ] && . /etc/sysconfig/argus
 
@@ -23,7 +26,7 @@
 start() {
 	if [ ! -f /var/lock/subsys/argus ]; then
 		msg_starting argus
-		daemon --user argus argus -d "${LOG}"
+		daemon argus -d "${LOG}" "${USER}"
 		RETVAL=$?
 		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/argus
 	else

================================================================
Index: SOURCES/argus.sysconfig
diff -u SOURCES/argus.sysconfig:1.2 SOURCES/argus.sysconfig:1.3
--- SOURCES/argus.sysconfig:1.2	Tue Feb 27 21:16:20 2007
+++ SOURCES/argus.sysconfig	Thu Mar  1 12:49:30 2007
@@ -5,3 +5,6 @@
 
 # set argus log file
 LOG="-w /var/log/argus/argus.log"
+
+# set user and group that daemon should run as
+USER="-u argus -g argus"
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/argus.init?r1=1.5&r2=1.6&f=u
    http://cvs.pld-linux.org/SOURCES/argus.sysconfig?r1=1.2&r2=1.3&f=u



More information about the pld-cvs-commit mailing list