command "rcctl ls failed" exits with 1 if enabled daemon is not running, but there is no error

This commit is contained in:
Jérémy Dubois 2023-06-05 10:39:44 +02:00
parent 53e41977c8
commit 9465efd217
2 changed files with 3 additions and 1 deletions

View file

@ -14,6 +14,8 @@ The **patch** part changes is incremented if multiple releases happen the same m
### Changed
* command "rcctl ls failed" exits with 1 if enabled daemon is not running, but there is no error
### Fixed
### Removed

View file

@ -432,7 +432,7 @@ task_rcctl() {
last_result=$(${rcctl_bin} ls failed > "${dump_dir}/rcctl-failed-services.txt")
last_rc=$?
if [ ${last_rc} -eq 0 ]; then
if [ ${last_rc} -eq 0 ] || [ ${last_rc} -eq 1 ]; then
debug "* failed services OK"
else
debug "* failed services ERROR"