diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-02-13 17:10:12 -0500 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-02-20 22:38:23 -0500 |
commit | ef417cfd2211ae017a38b9796c6db29130133e63 (patch) | |
tree | a633270db3f254af3dfe738b1080b7b3b3e969f1 /src/core | |
parent | 0ef61cec618391593a410ef3ce277071d559edb0 (diff) |
manager: be more precise in message about restart
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/service.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/service.c b/src/core/service.c index d8e88ea2f0..ca71788d22 100644 --- a/src/core/service.c +++ b/src/core/service.c @@ -3308,7 +3308,10 @@ static int service_dispatch_timer(sd_event_source *source, usec_t usec, void *us case SERVICE_AUTO_RESTART: log_info_unit(UNIT(s)->id, - "%s holdoff time over, scheduling restart.", UNIT(s)->id); + s->restart_usec > 0 ? + "%s holdoff time over, scheduling restart." : + "%s has no holdoff time, scheduling restart.", + UNIT(s)->id); service_enter_restart(s); break; |