/etc/init.d/incron status return code incorrect
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
incron (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
/etc/init.d/incron status does not return a return code indicating the process is not running.
$ /etc/init.d/incron status ; echo $?
* incron is not running
0
http://
I believe this section of the init script:
if ! status_of_proc "$(basename "$INCROND")" "$NAME" ; then
exit $?
fi
should instead read:
With this change patched into the init script:
$ /tmp/incron status ; echo $?
* incron is not running
3
Description: Ubuntu 14.04.4 LTS
Release: 14.04
incron:
Installed: 0.5.10-1ubuntu1
Candidate: 0.5.10-1ubuntu1
Version table:
*** 0.5.10-1ubuntu1 0
500 http://
100 /var/lib/