service: add options RestartPreventExitStatus and SuccessExitStatus
In some cases, like wrong configuration, restarting after error does not help, so administrator can specify statuses by RestartPreventExitStatus which will not cause restart of a service. Sometimes you have non-standart exit status, so this can be specified by SuccessfulExitStatus.
This commit is contained in:
committed by
Lennart Poettering
parent
d98cc1f29f
commit
96342de68d
@@ -2148,7 +2148,7 @@ static void print_status_info(UnitStatusInfo *i) {
|
||||
printf("\t Process: %u %s=%s ", p->pid, p->name, strna(t));
|
||||
free(t);
|
||||
|
||||
good = is_clean_exit_lsb(p->code, p->status);
|
||||
good = is_clean_exit_lsb(p->code, p->status, NULL);
|
||||
if (!good) {
|
||||
on = ansi_highlight_red(true);
|
||||
off = ansi_highlight_red(false);
|
||||
|
||||
Reference in New Issue
Block a user