Red Hat Bugzilla – Bug 237809
Wrong init script
Last modified: 2014-02-10 18:02:04 EST
+++ This bug was initially created as a clone of Bug #237805 +++
Description of problem:
If the /etc/quagga/bgpd.conf does not exist or the networking is shut down, then
the script always ends with error code 0 (even if status is invoked). There are
also wrong return codes in the script.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. service network stop
2. service bgpd start/status...
3. echo $0
non-zero exit code due to our guidelines or status of the service
When fixing this bug, please obbey our init script guidelines and be sure that
status command is run correctly.
Our guidelines are on following two pages:
For an example of the script that returns the error codes correctly and always
runs status see:
This bug is tracked by 237789.
*** This bug has been marked as a duplicate of 247040 ***