[Pkg-nagios-changes] [SCM] Debian packaging for mod gearman. branch, master, updated. f5edd3e88aa2138dcf6d044c835fbd0ada944168

Stig Sandbeck Mathisen ssm at debian.org
Fri Feb 11 11:19:16 UTC 2011


The following commit has been merged in the master branch:
commit 377a02bf5ea767e8825af54def6318571142e27f
Author: Stig Sandbeck Mathisen <ssm at debian.org>
Date:   Thu Feb 10 19:46:44 2011 +0100

    Check for the presence of the configuration file

diff --git a/debian/mod-gearman-worker.init b/debian/mod-gearman-worker.init
index 21812b2..e529740 100755
--- a/debian/mod-gearman-worker.init
+++ b/debian/mod-gearman-worker.init
@@ -24,6 +24,10 @@ DAEMON_OPTS="-d --config=$CONFIG --pidfile=$PIDFILE"
 . /lib/lsb/init-functions
 
 pre_start() {
+    if [ ! -e "$CONFIG" ]; then
+        log_failure_msg "Configuration file $CONFIG not present"
+        exit
+    fi
     install -o $USER -g $USER -d $(dirname $PIDFILE)
 }
 

-- 
Debian packaging for mod gearman.



More information about the Pkg-nagios-changes mailing list