Code

po/it.po: Updated by debconf-updatepo.
[pkg-collectd.git] / debian / collectd-core.collectd.init.d
index 5771380d0594c1d96adb0c04cda8b4e74846fa03..a5e8887815b9c8ad13242bf7ce13e7cedc7d7b06 100755 (executable)
@@ -24,7 +24,7 @@
 
 set -e
 
-PATH=/sbin:/bin:/usr/sbin:/usr/bin
+export PATH=/sbin:/bin:/usr/sbin:/usr/bin
 
 DISABLE=0
 
@@ -142,10 +142,16 @@ d_status() {
                        echo "collectd ($PID) is running."
                        exit 0
                else
+                       if test -f "$_PIDFILE"; then
+                               echo "collectd is stopped but PID file exists."
+                               exit 1
+                       fi
                        echo "collectd is stopped."
+                       exit 3
                fi
        fi
-       exit 1
+       echo "status of collectd unknown."
+       exit 4
 }
 
 case "$1" in