Skip to content

Commit d11fdaf

Browse files
dos1vitalyster
authored andcommitted
systemd: wait for network-online.target and add WantedBy=multi-user.target
Thanks to that, "systemctl enable spectrum2" does what expected, that is makes Spectrum2 start on boot. Also, network.target doesn't tell anything meaningful - it's just that the network stack is available. Adding network-online.target makes sure that the network interfaces are up before starting Spectrum2.
1 parent b86ef7b commit d11fdaf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[Unit]
22
Description=spectrum2
3-
After=network.target
3+
Wants=network-online.target
4+
After=network.target network-online.target
45

56
[Service]
67
Type=forking
@@ -10,4 +11,4 @@ ExecStop=/usr/bin/spectrum2_manager stop
1011
ExecReload=/usr/bin/spectrum2_manager restart
1112

1213
[Install]
13-
Alias=spectrum2
14+
WantedBy=multi-user.target

0 commit comments

Comments
 (0)