base-files,procd: add generic service status
authorLuiz Angelo Daros de Luca <luizluca@gmail.com>
Wed, 12 Sep 2018 01:35:09 +0000 (22:35 -0300)
committerPetr Štetiar <ynezz@true.cz>
Sun, 15 Sep 2019 20:53:01 +0000 (22:53 +0200)
commit7519a36774ca0e50dfae6a4b9fea75cab95171a5
treecad59cdd370e0c6d04013cb92d2d45c0a22b7757
parented5b9129d7a47adaecdce694cec8e7b61131a9da
base-files,procd: add generic service status

Adds a default status action for init.d scripts.

procd "service status" will return:

 0) for loaded services (even if disabled by conf or dead)
 3) for inactive services
 4) when filtering a non-existing instance

Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
[rebased, cleaned up]
Signed-off-by: Petr Štetiar <ynezz@true.cz>
package/base-files/files/etc/rc.common
package/system/procd/files/procd.sh