Package: mon Version: 0.99.2-13 Severity: wishlist Tags: patch
Patch: in /etc/init.d/mon, accept ENABLED values: yes, true, 1 -- System Information: Debian Release: squeeze/sid APT prefers testing APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.26-1-amd64 (SMP w/2 CPU cores) Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
>From 8e55cd2c65dda3e5ac717817578969cd67068d40 Mon Sep 17 00:00:00 2001 From: Jari Aalto <jari.aa...@cante.net> Date: Sat, 4 Apr 2009 20:56:34 +0300 Subject: [PATCH] mon.init.d: Accept ENABLED values yes true and 1 Signed-off-by: Jari Aalto <jari.aa...@cante.net> --- mon.cf | 3 +++ mon.init.d | 7 ++++++- 2 files changed, 9 insertions(+), 1 deletions(-) mode change 100644 => 100755 mon.init.d diff --git a/mon.cf b/mon.cf index 739b0c6..8a086c6 100644 --- a/mon.cf +++ b/mon.cf @@ -13,3 +13,6 @@ # # serverbind = localhost # trapbind = localhost + +# To disbale service at boot, uncomment following +# ENABLED="no" diff --git a/mon.init.d b/mon.init.d old mode 100644 new mode 100755 index 05041a5..34951c6 --- a/mon.init.d +++ b/mon.init.d @@ -36,7 +36,12 @@ fi # # Read /etc/default/mon settings # -if [ $ENABLED != "yes" ] ; then +if [ $ENABLED = "yes" ] || + [ $ENABLED = "true" ] || + [ $ENABLED = "1" ] +then + : +else log_warning_msg "mon is disabled by /etc/default/mon directive (ENABLE=\"$ENABLED\")" exit 0 fi -- 1.6.1.3