Changeset - d11fdaf3e279
[Not reviewed]
0 1 0
Sebastian Krzyszkowiak - 7 years ago 2018-04-04 19:12:35
dos@dosowisko.net
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 file changed with 3 insertions and 2 deletions:
0 comments (0 inline, 0 general)
packaging/debian/debian/spectrum2.service
Show inline comments
 
[Unit]
 
Description=spectrum2
 
After=network.target
 
Wants=network-online.target
 
After=network.target network-online.target
 

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

	
 
[Install]
 
Alias=spectrum2
 
\ No newline at end of file
 
WantedBy=multi-user.target
0 comments (0 inline, 0 general)