initctl: add -n,--noerr to return OK(0) if svc doesn't exist

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg committed 2023-01-19 19:57:25 +01:00
1 parent 859d215ca4
commit 320e91653b
2 files changed
+19 -6

No files matched your search

+6
View File
@@ -39,6 +39,12 @@ JSON output in
and
.Ar cond
commands.
.It Fl n, -noerr
When scripting
.Nm
to stop, start, restart, or signal a task or service, this option can be
used to ignore error 69 (no such task or service) and instead return 0
(OK).
.It Fl 1, -once
Only one lap in commands like top.
.It Fl p, -plain