]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
init script: be LSB compliant for exit code on status
authorFlorian Haas <florian@hastexo.com>
Tue, 27 Dec 2011 10:43:47 +0000 (11:43 +0100)
committerSage Weil <sage@newdream.net>
Thu, 29 Dec 2011 20:00:02 +0000 (12:00 -0800)
commit48df71c854b1c315f2ec66d067e9d0450a9a6068
tree528ae9dc11189bc7050dcc8cbae51c44aa13a506
parent3b2ca7cf9bce654c0e478dbeeba5875537e3ced2
init script: be LSB compliant for exit code on status

An exit code of 1 on status is defined in LSB as
"program is dead, but pid file exists". Check for existence
of this pid file, and only set the exit status 1 if it's still there.
Set it to 3 ("program is not running") otherwise.

Reference: http://refspecs.linuxbase.org/LSB_3.1.0/LSB-Core-generic/LSB-Core-generic/iniscrptact.html

Signed-off-by: Florian Haas <florian@hastexo.com>
src/init-ceph.in