diff options
author | Michael Fenn <fennm@deshawresearch.com> | 2013-03-28 09:36:21 -0400 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2013-03-28 10:24:56 -0400 |
commit | b8b15234bcf3fc4edecf219e2c3331e9eee54b17 (patch) | |
tree | f69dcbb1be9e17f6b8aeccc3564d0838fcba2b6d /examples/Cfg | |
parent | 52824a1cf8786c318269f71f0cc7c234d4a92f73 (diff) | |
download | bcfg2-b8b15234bcf3fc4edecf219e2c3331e9eee54b17.tar.gz bcfg2-b8b15234bcf3fc4edecf219e2c3331e9eee54b17.tar.bz2 bcfg2-b8b15234bcf3fc4edecf219e2c3331e9eee54b17.zip |
Pass through retval from start, stop, status, etc.
The various init scripts have the usual start, stop, and status
functions which are called from a case statement. The functions
even nicely return various values for success and failure.
Unfortunately, those values were not passed all the way back to the
calling shell.
Previously, the init scripts would return 0 if any of start, stop, or
status failed. This commit ensures that they they pass the return
value back to the caller.
Why does this matter? Well, beyond just being generally good
citizens, bcfg2's own chkconfig client tool expects stopped services
to return a non-zero exit code when their status function is called.
Otherwise it flags the service state as incorrect and tries to stop
it on every run.
Diffstat (limited to 'examples/Cfg')
0 files changed, 0 insertions, 0 deletions