Public bug reported:

pidofproc assumes either a PID file in /var/run/smokeping.pid, or
failing that uses pidof to find the PID.

A running smokeping looks like this:
root@myhost:~# ps uawx|grep smokeping
109      26838  0.0  0.5 141824 22296 ?        Ss   11:41   0:00 
/usr/sbin/smokeping [FPing]

And 'pidof smokeping' doesn't find it (presumably due to the [FPing]).

Can be fixed in the init script with the -p option to pidofproc:
pidofproc -p $PIDFILE "$DAEMON" > /dev/null

Patch attached.

** Affects: smokeping (Ubuntu)
     Importance: Undecided
         Status: New

** Attachment added: "Patch to /etc/init.d/smokeping"
   
https://bugs.launchpad.net/bugs/1269979/+attachment/3950484/+files/smokeping-init.d.patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1269979

Title:
  /etc/init.d/smokeping status does not find running process

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/smokeping/+bug/1269979/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to