summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-07-07 17:33:46 +0200
committerLennart Poettering <lennart@poettering.net>2014-07-07 17:33:46 +0200
commit8cfdb077b8e3da1c47fc1d735d051f21f33144c1 (patch)
tree8707f63c09869680f7d72dc2af64b094ef3b714f /src/core
parentb4af5a803aa71a57733ca46fef29b7afb20a626c (diff)
service: flush status text and errno values each time a service is started
We shouldn't show status texts from previous service starts
Diffstat (limited to 'src/core')
-rw-r--r--src/core/service.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/service.c b/src/core/service.c
index d5aff99096..0f542edb4f 100644
--- a/src/core/service.c
+++ b/src/core/service.c
@@ -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;
}