Red Hat Bugzilla – Bug 431452
Wrong init script
Last modified: 2016-07-26 19:46:47 EDT
+++ This bug was initially created as a clone of Bug #431450 +++
Description of problem:
In several occasions, the script may end with return code 0 even when the
service does not start correctly. For example
[ -x /usr/sbin/vsftpd ] || exit 0
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. change access rights such that /usr/sbin/vsftpd is not executable
2. service vsftpd start
3. echo $?
Non-zero exit code with respect to our guidelines.
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:
Fixed in vsftpd-2.0.6-2.fc9