]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core: make sure to restore the control command id, too 15546/head
authorLennart Poettering <lennart@poettering.net>
Wed, 22 Apr 2020 18:34:02 +0000 (20:34 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 22 Apr 2020 18:34:02 +0000 (20:34 +0200)
Fixes: #15356
src/core/service.c

index 861d82041a65d51c04f4290b9d5133edf1de767a..7d5928e455ce369ef1695b1903bcc539a8ccc6d7 100644 (file)
@@ -2834,9 +2834,10 @@ static int service_deserialize_exec_command(
                                 break;
         }
 
-        if (command && control)
+        if (command && control) {
                 s->control_command = command;
-        else if (command)
+                s->control_command_id = id;
+        } else if (command)
                 s->main_command = command;
         else
                 log_unit_warning(u, "Current command vanished from the unit file, execution of the command list won't be resumed.");