From: Arne Fitzenreiter Date: Tue, 12 May 2009 17:30:33 +0000 (+0200) Subject: First shutdown collectd and then save ramdisk at collectd stop X-Git-Tag: v2.5-beta3~20^2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4c89f6d457b3db609a4834cfd7354667e69d063e;p=people%2Fstevee%2Fipfire-2.x.git First shutdown collectd and then save ramdisk at collectd stop --- diff --git a/src/initscripts/init.d/collectd b/src/initscripts/init.d/collectd index cf02acbe3e..a63aea05c8 100644 --- a/src/initscripts/init.d/collectd +++ b/src/initscripts/init.d/collectd @@ -84,13 +84,13 @@ case "$1" in evaluate_retval ;; stop) + boot_mesg "Stopping Collection daemon..." + killproc /usr/sbin/collectd + evaluate_retval # Save the ramdisk at manual stop but not at shutdown if [ "$(basename $0)" == "collectd" ]; then /etc/init.d/tmpfs backup fi - boot_mesg "Stopping Collection daemon..." - killproc /usr/sbin/collectd - evaluate_retval ;; restart) ${0} stop