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:
Lennart Poettering
2014-07-07 17:33:46 +02:00
parent b4af5a803a
commit 8cfdb077b8
+4
View File
@@ -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;
}