/etc/init.d/smokeping status does not find running process
Bug #1269979 reported by
Craig Miskell
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
smokeping (Debian) |
Fix Released
|
Unknown
|
|||
smokeping (Ubuntu) |
Triaged
|
High
|
Unassigned |
Bug Description
pidofproc assumes either a PID file in /var/run/
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.
Changed in smokeping (Ubuntu): | |
importance: | Undecided → High |
status: | New → Triaged |
Changed in smokeping (Debian): | |
status: | Unknown → New |
Changed in smokeping (Debian): | |
status: | New → Fix Released |
To post a comment you must log in.
Craig's patch in #1 looks good - applies cleanly on my test install.