rc: add support for scanning USE_PROCD and skip running if not supported
authorChristian Marangi <ansuelsmth@gmail.com>
Tue, 31 Jan 2023 14:32:59 +0000 (15:32 +0100)
committerChristian Marangi <ansuelsmth@gmail.com>
Tue, 31 Jan 2023 15:11:23 +0000 (16:11 +0100)
commit5577db9208e179e18cfe2e5e8376d58fd9111140
tree314d1d430dd15df41ec41f6b5e6a5d2be5af44aa
parent4de3f02e3124994ad30600a69711150f1e9c9956
rc: add support for scanning USE_PROCD and skip running if not supported

Running check is supported only in procd scripts. This cause prolonged
execution time since the function needs to timeout.

To fix this check if the script USE_PROCD and run running check only if
supported.

Also provide running info only if the running check is supported.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
rc.c