service: flush status text and errno values each time a service is started

We shouldn't show status texts from previous service starts

(cherry picked from commit 8cfdb077b8)
(cherry picked from commit 853896f09d)
This commit is contained in:
Lennart Poettering
2014-07-19 17:24:14 -04:00
committed by Zbigniew Jędrzejewski-Szmek
parent 3fe476cebb
commit d49a0afefd
+3
View File
@@ -2575,6 +2575,9 @@ static int service_start(Unit *u) {
s->main_pid_alien = false;
s->forbid_restart = false;
free(s->status_text);
s->status_text = NULL;
service_enter_start_pre(s);
return 0;
}