From faf2fba10006eb97bc56fbf0be190bd64310bfd4 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Sun, 15 Mar 2009 21:26:53 +0100 Subject: [PATCH] collectd.init.d: Start the daemon using start-stop-daemon's --oknodo option. This makes sure that the init script exits successfully if the daemon is already running as requested by section 9.3.2 of the Debian Policy 3.8.1. --- debian/changelog | 6 +++++- debian/collectd.init.d | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/debian/changelog b/debian/changelog index 3eb7b49..488918d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -46,8 +46,12 @@ collectd (4.6.1-1) unstable; urgency=low * debian/collectd.overrides: - Override "spelling-error-in-description" for the apache plugin name - all plugins are spelled lowercase. + * debian/collectd.init.d: + - Start the daemon using start-stop-daemon's --oknodo option to exit + successfully if the daemon is already running as requested by section + 9.3.2 of the Debian Policy 3.8.1. - -- Sebastian Harl Sun, 15 Mar 2009 21:12:01 +0100 + -- Sebastian Harl Sun, 15 Mar 2009 21:24:21 +0100 collectd (4.5.1-1) experimental; urgency=low diff --git a/debian/collectd.init.d b/debian/collectd.init.d index 911f648..3368bf9 100755 --- a/debian/collectd.init.d +++ b/debian/collectd.init.d @@ -78,10 +78,10 @@ d_start() { check_config if test "$USE_COLLECTDMON" == 1; then - start-stop-daemon --start --quiet --pidfile "$_PIDFILE" \ + start-stop-daemon --start --quiet --oknodo --pidfile "$_PIDFILE" \ --exec $COLLECTDMON_DAEMON -- -P "$_PIDFILE" -- -C "$CONFIGFILE" else - start-stop-daemon --start --quiet --pidfile "$_PIDFILE" \ + start-stop-daemon --start --quiet --oknodo --pidfile "$_PIDFILE" \ --exec $DAEMON -- -C "$CONFIGFILE" -P "$_PIDFILE" fi } -- 2.30.2