SOURCES: motion.init - start daemon as motion user

darekr darekr at pld-linux.org
Tue Sep 12 20:26:44 CEST 2006


Author: darekr                       Date: Tue Sep 12 18:26:44 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- start daemon as motion user

---- Files affected:
SOURCES:
   motion.init (1.3 -> 1.4) 

---- Diffs:

================================================================
Index: SOURCES/motion.init
diff -u SOURCES/motion.init:1.3 SOURCES/motion.init:1.4
--- SOURCES/motion.init:1.3	Thu Mar 23 23:23:57 2006
+++ SOURCES/motion.init	Tue Sep 12 20:26:38 2006
@@ -24,7 +24,7 @@
 	start)
 		if [ ! -f /var/lock/subsys/motion ]; then
 			msg_starting motion
-			daemon ${motion} ${STARTUP_OPTIONS}
+			daemon --user motion ${motion} ${STARTUP_OPTIONS}
 			RETVAL=$?
 			if [ $RETVAL -eq 0 ] ; then
 				echo `ps axf | grep -v grep | grep ${motion} | head -n1 | awk '{print $1}'` > ${PIDFILE}
================================================================

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



More information about the pld-cvs-commit mailing list