]> git.pld-linux.org Git - packages/cancd.git/commitdiff
- more complete (.ebuild was helpful achieving this)
authorElan Ruusamäe <glen@pld-linux.org>
Fri, 6 Jan 2006 20:17:16 +0000 (20:17 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    cancd.init -> 1.2
    cancd.sysconfig -> 1.2

cancd.init
cancd.sysconfig

index abd91e491b9442362d01920a6286a23c668d8869..c62834812f0acdaab9ca7856fd7544a659d8ed2a 100644 (file)
@@ -35,7 +35,7 @@ case "$1" in
        # 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 a3980bd75ea6c7dce45d47fb7d3f3ece0445f85c..3d9316bf58da66b9a49c4d0d819c1a2c26eb1a22 100644 (file)
@@ -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"
This page took 0.092717 seconds and 4 git commands to generate.