troglobit / finit

Fast init for Linux. Cookies included
https://troglobit.com/projects/finit/
MIT License
633 stars 64 forks source link

initctl: Follow priciple of least surprise for "cond get" #349

Closed wkz closed 1 year ago

wkz commented 1 year ago

The accepted standard in Unix is to report successful executions with exitcode 0. Therefore, map a "initctl cond get" of a condition to the following exitcodes:

Fixes: c3c662fe6446 ("initctl: ensure 'cond get' support flux state") Signed-off-by: Tobias Waldekranz tobias@waldekranz.com