Author: glen                         Date: Mon Aug  1 19:06:22 2005 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- possibility to run as non-root

---- Files affected:
SOURCES:
   syslog.sysconfig (1.4 -> 1.5) , syslog.init (1.19 -> 1.20) 

---- Diffs:

================================================================
Index: SOURCES/syslog.sysconfig
diff -u SOURCES/syslog.sysconfig:1.4 SOURCES/syslog.sysconfig:1.5
--- SOURCES/syslog.sysconfig:1.4        Fri Oct 10 10:51:04 2003
+++ SOURCES/syslog.sysconfig    Mon Aug  1 21:06:17 2005
@@ -17,3 +17,6 @@
 
 # Use additional sockets, i. e. socket from chrooted bind
 ADDITIONAL_SOCK=""
+
+# run syslog as this user.
+#RUNAS=syslog

================================================================
Index: SOURCES/syslog.init
diff -u SOURCES/syslog.init:1.19 SOURCES/syslog.init:1.20
--- SOURCES/syslog.init:1.19    Fri Oct 10 10:51:04 2003
+++ SOURCES/syslog.init Mon Aug  1 21:06:17 2005
@@ -42,7 +42,10 @@
 fi
 if [ -n "$ADDITIONAL_SOCK" ]; then
        OPTIONS="$OPTIONS -a $ADDITIONAL_SOCK"
-fi     
+fi
+if [ -n "$RUNAS" ]; then
+       OPTIONS="$OPTIONS -u $RUNAS"
+fi
 
 RETVAL=0
 # See how we were called.
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/syslog.sysconfig?r1=1.4&r2=1.5&f=u
    http://cvs.pld-linux.org/SOURCES/syslog.init?r1=1.19&r2=1.20&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to