service: flush status text and errno values each time a service is started
We shouldn't show status texts from previous service starts
This commit is contained in:
@@ -1699,6 +1699,10 @@ static int service_start(Unit *u) {
|
||||
s->main_pid_alien = false;
|
||||
s->forbid_restart = false;
|
||||
|
||||
free(s->status_text);
|
||||
s->status_text = NULL;
|
||||
s->status_errno = 0;
|
||||
|
||||
service_enter_start_pre(s);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user