Skip to content

Status returns bad codes #78

@symkat

Description

@symkat
$ sudo service httpd status
httpd is stopped
$ echo $?
3
$ sudo my_daemon status
my_daemon                                                    [Not Running]
$ echo $?
0

The exit cods for status should reflect the exit codes in the following documentation:

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions