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:
+1
-1
@@ -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
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user