Commit 1fed2312 authored by Andreas Fuchs's avatar Andreas Fuchs
Browse files

Add X-NotSocketActivated logic to switch-to-configuration.pl, as well

parent bf9c6c98
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -530,6 +530,13 @@ sub handle_modified_unit { ## no critic(Subroutines::ProhibitManyArgs, Subroutin
                    }
                }

                if (parse_systemd_bool(\%new_unit_info, "Service", "X-NotSocketActivated", 0)) {
                    # If the unit explicitly opts out of socket
                    # activation, restart it as if it weren't (but do
                    # restart its sockets, that's fine):
                    $socket_activated = 0;
                }

                # If the unit is not socket-activated, record
                # that this unit needs to be started below.
                # We write this to a file to ensure that the