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.
This commit is contained in:
Michal Schmidt
2015-07-21 15:09:12 +02:00
parent d1a34ae9c2
commit 2d018ae23b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1025,7 +1025,7 @@ static int mount_reload(Unit *u) {
assert(m->state == MOUNT_MOUNTED);
mount_enter_remounting(m);
return 0;
return 1;
}
static int mount_serialize(Unit *u, FILE *f, FDSet *fds) {
+1 -1
View File
@@ -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) {