about summary refs log tree commit diff
path: root/nixos/modules/system/activation/switch-to-configuration.pl
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-03-17 14:10:25 +0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-03-17 14:10:48 +0100
commitf13bd41384afadcd94e316759583359de37d15bd (patch)
tree169ea5c4533c92f1bea3bcb58d0834d1bca18d10 /nixos/modules/system/activation/switch-to-configuration.pl
parent0d506aa712cf088343dff5863e9e58eb1228c3b0 (diff)
downloadnixlib-f13bd41384afadcd94e316759583359de37d15bd.tar
nixlib-f13bd41384afadcd94e316759583359de37d15bd.tar.gz
nixlib-f13bd41384afadcd94e316759583359de37d15bd.tar.bz2
nixlib-f13bd41384afadcd94e316759583359de37d15bd.tar.lz
nixlib-f13bd41384afadcd94e316759583359de37d15bd.tar.xz
nixlib-f13bd41384afadcd94e316759583359de37d15bd.tar.zst
nixlib-f13bd41384afadcd94e316759583359de37d15bd.zip
switch-to-configuration: Restart sockets.target
Diffstat (limited to 'nixos/modules/system/activation/switch-to-configuration.pl')
-rw-r--r--nixos/modules/system/activation/switch-to-configuration.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/system/activation/switch-to-configuration.pl b/nixos/modules/system/activation/switch-to-configuration.pl
index e0649448c834..3f78ec0d48eb 100644
--- a/nixos/modules/system/activation/switch-to-configuration.pl
+++ b/nixos/modules/system/activation/switch-to-configuration.pl
@@ -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);