init.d script should use --oknodo option
Bug #684642 reported by
Sergey Svishchev
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Server papercuts |
Fix Released
|
Undecided
|
Unassigned | ||
syslog-ng (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: syslog-ng
Debian policy [1] states:
"The init.d scripts must ensure that they will behave sensibly (i.e., returning success and not starting multiple copies of a service) if invoked with start when the service is already running, or with stop when it isn't, and that they don't kill unfortunately-named user processes. The best way to achieve this is usually to use start-stop-daemon with the --oknodo option."
".../syslog-ng stop" returns 1 when daemon is not running.
To post a comment you must log in.
fixed in Ubuntu 11.10
root@ubuntu1110:~# /etc/init. d/syslog- ng stop d/syslog- ng stop
* Stopping system logging syslog-ng [ OK ]
root@ubuntu1110:~# echo $?
0
root@ubuntu1110:~# /etc/init.
* Stopping system logging syslog-ng seems to be stopped already
root@ubuntu1110:~# echo $?
0
root@ubuntu1110:~#