diff options
author | Michal Schmidt <mschmidt@redhat.com> | 2015-07-16 21:39:56 +0200 |
---|---|---|
committer | Michal Schmidt <mschmidt@redhat.com> | 2015-07-21 15:09:12 +0200 |
commit | 2d018ae23b838f050516d06859f50ecb9733d44b (patch) | |
tree | f83bb24aa67032ca354f09a48f2f8b6f2213c088 /src/core/service.c | |
parent | d1a34ae9c20f1c02aab17884919eccef572b1d21 (diff) |
core: correct return value from reload methods
Return 1 from *_reload() methods to signify "we did something", just
like in *_start(). This causes "Reloading foo..." messages to be logged.
"Reloaded foo." messages are already logged.
Diffstat (limited to 'src/core/service.c')
-rw-r--r-- | src/core/service.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/service.c b/src/core/service.c index d72ff54daa..78c8838f7c 100644 --- a/src/core/service.c +++ b/src/core/service.c @@ -1974,7 +1974,7 @@ static int service_reload(Unit *u) { assert(s->state == SERVICE_RUNNING || s->state == SERVICE_EXITED); service_enter_reload(s); - return 0; + return 1; } _pure_ static bool service_can_reload(Unit *u) { |