[Pkg-nagios-changes] [SCM] Debian packaging for mod gearman. branch, master, updated. debian/1.3.0-1-8-g9b66193
Stig Sandbeck Mathisen
ssm at debian.org
Wed Jun 6 22:32:59 UTC 2012
The following commit has been merged in the master branch:
commit 9b661932399fe2de2782e5844e59c4dbae8134e0
Author: Stig Sandbeck Mathisen <ssm at debian.org>
Date: Thu Jun 7 00:32:54 2012 +0200
Whitespace, indentation and style cleanup
diff --git a/debian/mod-gearman-worker.init b/debian/mod-gearman-worker.init
index 540984f..123044e 100755
--- a/debian/mod-gearman-worker.init
+++ b/debian/mod-gearman-worker.init
@@ -9,8 +9,8 @@
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Control the mod-gearman worker daemon
-# Description: Control the mod-gearman worker daemon which fetches
-# and processes jobs (servicechecks, hostchecks or
+# Description: Control the mod-gearman worker daemon which fetches
+# and processes jobs (servicechecks, hostchecks or
# eventhandlers) from a gearman-job-server instance.
### END INIT INFO
@@ -33,20 +33,19 @@ fi
# this is from madduck on IRC, 2006-07-06
# There should be a better possibility to give daemon error messages
# and/or to log things
-log()
-{
- case "$1" in
- [[:digit:]]*) success=$1; shift;;
- *) :;;
- esac
- log_action_begin_msg "$1"; shift
- log_action_end_msg ${success:-0} "$*"
+log() {
+ case "$1" in
+ [[:digit:]]*) success=$1; shift;;
+ *) :;;
+ esac
+ log_action_begin_msg "$1"; shift
+ log_action_end_msg ${success:-0} "$*"
}
abort_if_unconfigured() {
if [ ! -e "$CONFIG" ]; then
log 1 "Configuration file $CONFIG not present"
- exit 1
+ exit 1
fi
}
@@ -90,18 +89,18 @@ case "$1" in
log_daemon_msg "Starting $DESC" "$NAME"
pre_start
start_worker
- case "$?" in
- 0|1) log_end_msg 0 ;;
- 2) log_end_msg 1 ;;
- esac
+ case "$?" in
+ 0|1) log_end_msg 0 ;;
+ 2) log_end_msg 1 ;;
+ esac
;;
stop)
log_daemon_msg "Stopping $DESC" "$NAME"
stop_worker
- case "$?" in
- 0|1) log_end_msg 0 ;;
- 2) log_end_msg 1 ;;
- esac
+ case "$?" in
+ 0|1) log_end_msg 0 ;;
+ 2) log_end_msg 1 ;;
+ esac
;;
reload|force-reload)
log_daemon_msg "Reloading $DESC" "$NAME"
@@ -113,23 +112,23 @@ case "$1" in
;;
restart)
abort_if_unconfigured
- log_daemon_msg "Restarting $DESC" "$NAME"
+ log_daemon_msg "Restarting $DESC" "$NAME"
stop_worker
- case "$?" in
- 0|1)
- start_worker
- case "$?" in
- 0) log_end_msg 0 ;;
- 1) log_end_msg 1 ;; # Old process is still running
- *) log_end_msg 1 ;; # Failed to start
- esac
- ;;
- *)
- # Failed to stop
- log_end_msg 1
- ;;
- esac
- ;;
+ case "$?" in
+ 0|1)
+ start_worker
+ case "$?" in
+ 0) log_end_msg 0 ;;
+ 1) log_end_msg 1 ;; # Old process is still running
+ *) log_end_msg 1 ;; # Failed to start
+ esac
+ ;;
+ *)
+ # Failed to stop
+ log_end_msg 1
+ ;;
+ esac
+ ;;
*)
echo "Usage: $0 [start|stop|status|reload|force-reload|restart]"
exit 1
--
Debian packaging for mod gearman.
More information about the Pkg-nagios-changes
mailing list