SOURCES: cancd.init, cancd.sysconfig - more complete (.ebuild was ...
glen
glen at pld-linux.org
Fri Jan 6 21:17:21 CET 2006
Author: glen Date: Fri Jan 6 20:17:21 2006 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- more complete (.ebuild was helpful achieving this)
---- Files affected:
SOURCES:
cancd.init (1.1 -> 1.2) , cancd.sysconfig (1.1 -> 1.2)
---- Diffs:
================================================================
Index: SOURCES/cancd.init
diff -u SOURCES/cancd.init:1.1 SOURCES/cancd.init:1.2
--- SOURCES/cancd.init:1.1 Fri Jan 6 21:08:44 2006
+++ SOURCES/cancd.init Fri Jan 6 21:17:16 2006
@@ -35,7 +35,7 @@
# Check if the service is already running?
if [ ! -f /var/lock/subsys/cancd ]; then
msg_starting cancd
- daemon cancd
+ daemon --user "$USER" /usr/sbin/cancd -p ${CANCD_PORT} -l "${CRASH_DIR}" -o "${CRASH_FORMAT}"
RETVAL=$?
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/cancd
else
================================================================
Index: SOURCES/cancd.sysconfig
diff -u SOURCES/cancd.sysconfig:1.1 SOURCES/cancd.sysconfig:1.2
--- SOURCES/cancd.sysconfig:1.1 Fri Jan 6 21:08:16 2006
+++ SOURCES/cancd.sysconfig Fri Jan 6 21:17:16 2006
@@ -4,5 +4,18 @@
# Nice level
#SERVICE_RUN_NICE_LEVEL="+5"
-# other command-line options
-#DAEMON_OPTS=""
+# user to run as, root strongly discouraged
+# user should have /bin/false for a shell
+# but file access into /var
+USER="cancd"
+
+# port to listen on
+CANCD_PORT=6664
+
+# directory to output to
+CRASH_DIR="/var/log/cancd"
+
+# one file per minute, one dir per host/date
+#CRASH_FORMAT="%Q/%Y-%m-%d/%H:%M.log"
+# one file per day, one dir per host
+CRASH_FORMAT="%Q/%Y-%m-%d.log"
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SOURCES/cancd.init?r1=1.1&r2=1.2&f=u
http://cvs.pld-linux.org/SOURCES/cancd.sysconfig?r1=1.1&r2=1.2&f=u
More information about the pld-cvs-commit
mailing list