[Pkg-nagios-changes] [SCM] Debian packaging for mod gearman. branch, master, updated. debian/1.3.0-1-7-g46a112f
Stig Sandbeck Mathisen
ssm at debian.org
Wed Jun 6 22:30:12 UTC 2012
The following commit has been merged in the master branch:
commit 1f670a0a81ae6e1a21af419c93175a8d0705eb63
Author: Stig Sandbeck Mathisen <ssm at debian.org>
Date: Wed Jun 6 23:27:16 2012 +0200
Update init script output and exit code when unconfigured (Closes: #676415)
diff --git a/debian/mod-gearman-worker.init b/debian/mod-gearman-worker.init
index 2a45ea2..d4dd17b 100755
--- a/debian/mod-gearman-worker.init
+++ b/debian/mod-gearman-worker.init
@@ -30,11 +30,14 @@ if [ -e /etc/default/mod-gearman-worker ]; then
. /etc/default/mod-gearman-worker
fi
-pre_start() {
+abort_if_unconfigured() {
if [ ! -e "$CONFIG" ]; then
- log_failure_msg "Configuration file $CONFIG not present"
- exit
+ log_failure_msg "mod-gearman-worker is unconfigured."
+ exit 6
fi
+}
+
+pre_start() {
install -o $USER -g $USER -d $(dirname $PIDFILE)
}
@@ -59,6 +62,7 @@ status_worker() {
case "$1" in
start)
+ abort_if_unconfigured
log_daemon_msg "Starting $DESC" "$NAME"
pre_start
start_worker
--
Debian packaging for mod gearman.
More information about the Pkg-nagios-changes
mailing list