3
0
Fork 0
forked from mirrors/nixpkgs

switch-to-configuration: Restart sockets.target

This commit is contained in:
Eelco Dolstra 2014-03-17 14:10:25 +01:00
parent 0d506aa712
commit f13bd41384

View file

@ -321,7 +321,7 @@ if (scalar @restart > 0) {
# that are symlinks to other units. We shouldn't start both at the
# same time because we'll get a "Failed to add path to set" error from
# systemd.
my @start = unique("default.target", "timers.target", split('\n', read_file($startListFile, err_mode => 'quiet') // ""));
my @start = unique("default.target", "timers.target", "sockets.target", split('\n', read_file($startListFile, err_mode => 'quiet') // ""));
print STDERR "starting the following units: ", join(", ", sort(@start)), "\n";
system("@systemd@/bin/systemctl", "start", "--", @start) == 0 or $res = 4;
unlink($startListFile);