simpleswitch-helper status#

$ simpleswitch-helper status --help
usage: simpleswitch-helper status [-h] [--machine-readable] [app]

positional arguments:
app                 Just display the status of this App

options:
-h, --help          show this help message and exit
--machine-readable  Display the statuses in a json form

prints an overview of the installed SimpleSwitch™ packages and their status

E.g.

$  simpleswitch-helper status
INFO: SIMPLESWITCH APPS               AUTOSTART       ACTIVE STATE    SUB STATE       RESULT          MAIN PID
INFO: simpleswitch-c-hello-world      True            active          running         success         10
INFO: simpleswitch-dhcp-helper        False           inactive        dead            success         0

or for a specific package

$ simpleswitch-helper status simpleswitch-dhcp-helper
INFO: SIMPLESWITCH APPS               AUTOSTART       ACTIVE STATE    SUB STATE       RESULT          MAIN PID
INFO: simpleswitch-dhcp-helper        False           inactive        dead            success         0

Using the option --machine-readable prints an overview of the installed SimpleSwitch™ packages and their status in a json form

E.g.

$ simpleswitch-helper status --machine-readable
{"simpleswitch-dhcp-helper": {"AUTOSTART": "False", "ACTIVE STATE": "inactive", "SUB STATE": "dead", "RESULT": "success", "MAIN PID": "0"}, "simpleswitch-filebrowser": {"AUTOSTART": "True", "ACTIVE STATE": "active", "SUB STATE": "running", "RESULT": "success", "MAIN PID": "1343"}}

or for a specific package

$ simpleswitch-helper status simpleswitch-filebrowser --machine-readable
{"simpleswitch-filebrowser": {"AUTOSTART": "True", "ACTIVE STATE": "active", "SUB STATE": "running", "RESULT": "success", "MAIN PID": "1343"}}