-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Package: smokeping Version: 2.6.8-2
This affects the wheezy version of smokeping. We are running OpenVZ Kernel (might be relevant): 2.6.32-openvz-042stab106.4-amd64 The init script of smokeping doesn't correctly detect if smokeping is running. Although it is running, the status command always return 3. The problem is that the pid file of smokeping is not in the standard location and the pid of the binary /usr/bin/smokeping cannot be found. See the attached output. I propose the attached patch which correctly sets the pid file when checking the status. -----BEGIN PGP SIGNATURE----- iQEcBAEBCAAGBQJVNl/zAAoJEK8Ii7qe/iAw7/AIAIunjiC+maDOnFUKj8miIPie IqaIurcBltt9WoSByIPfOfEkiBPh/qYYdsIDU5cakKNyeaIFLmMPuv0kEU/GgB3E arhfZMZ+MUGmtWzndQakguUgAHaNi0N/i0jJCala5veREIZC+DP4Xsx46uGUDB5e 3FPT3yjIsDm4Hb3Sc5A6J/56nM3uG1WEaaIaqswkvpM40jkiU98IuqF+Xiilhs+/ jhZBrs50bAu7zyI+jCAn7gAbh90fUxoOIVcRXnVQ1x71QaAYZT3NxP2b9zjVRw87 i/VFI+zHIkhePlNLKvBFopWPd5IqmwTuh77ogUMDjgBH9qwjhP/Im4odqHEBeT0= =qzpR -----END PGP SIGNATURE-----
--- smokeping.1 2015-04-21 16:18:34.000000000 +0200 +++ smokeping 2015-04-21 16:18:25.000000000 +0200 @@ -177,7 +177,7 @@ # 5-199 reserved (5-99 LSB, 100-149 distribution, 150-199 applications) set +e - pidofproc "$DAEMON" > /dev/null + pidofproc -p "$PIDFILE" "$DAEMON" > /dev/null STATUS=$? log_progress_msg "(status $STATUS)" log_end_msg 0
# ps aux|grep smokeping rpertl 855 0.0 0.0 7724 948 pts/0 S+ 14:22 0:00 grep --color=auto smokeping 106 5307 0.1 0.6 156772 27260 ? Ss 10:33 0:25 /usr/sbin/smokeping [FPing] # /etc/init.d/smokeping start [....] Starting latency logger daemon: smokepingERROR: I Quit! Another copy of /usr/sbin/smokeping (5307) seems to be running. Check /var/run/smokeping/smokeping.pid . ok # /etc/init.d/smokeping status [ ok ] Checking latency logger daemon status: smokeping (status 3). # echo $? 3