Author: glen                         Date: Tue Feb 15 23:26:54 2005 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- create logfile in /var/log (distcc user can't do it by itself)
- cleanups

---- Files affected:
SOURCES:
   distcc.init (1.12 -> 1.13) 

---- Diffs:

================================================================
Index: SOURCES/distcc.init
diff -u SOURCES/distcc.init:1.12 SOURCES/distcc.init:1.13
--- SOURCES/distcc.init:1.12    Sun Oct 17 18:35:51 2004
+++ SOURCES/distcc.init Wed Feb 16 00:26:49 2005
@@ -2,13 +2,12 @@
 #
 # $Id$
 #
-# distccd              distccd 
+# distccd              distccd
 #
 # chkconfig:   345 55 45
 #
-# description: distccd 
-#      
-
+# description: distccd
+#
 
 # Source function library
 . /etc/rc.d/init.d/functions
@@ -29,10 +28,8 @@
        exit 0
 fi
 
-OPTION1="--daemon"
-
 [ -z "$DISTCC_HOSTS_ALLOW" -a -n "$HOSTS_ALLOW" ] && 
DISTCC_HOSTS_ALLOW="$HOSTS_ALLOW"
-                       
+
 RETVAL=0
 # See how we were called.
 case "$1" in
@@ -40,9 +37,11 @@
        # Check if the service is already running?
        if [ ! -f /var/lock/subsys/distccd ]; then
                msg_starting distccd
+               touch distcc /var/log/distcc
+               chown distcc /var/log/distcc
                daemon /usr/bin/distccd --daemon --user distcc --log-file 
/var/log/distcc `for ip in $DISTCC_HOSTS_ALLOW; do echo -n "--allow $ip "; 
done` $DISTCC_OPTS
                RETVAL=$?
-               [ $RETVAL -eq 0 ] && touch /var/lock/subsys/distccd             
+               [ $RETVAL -eq 0 ] && touch /var/lock/subsys/distccd
        else
                msg_already_running distccd
        fi
@@ -54,7 +53,7 @@
                rm -f /var/run/distccd.pid /var/lock/subsys/distccd >/dev/null 
2>&1
        else
                msg_not_running distccd
-       fi      
+       fi
        ;;
   restart)
        $0 stop
@@ -83,4 +82,4 @@
 exit $RETVAL
 
 # This must be last line !
-# vi:syntax=sh:tw=78:ts=8:sw=4
+# vi:syntax=sh:tw=78:ts=4:sw=4
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/distcc.init?r1=1.12&r2=1.13&f=u


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

Reply via email to