Commit d11fdaf3 authored by Sebastian Krzyszkowiak's avatar Sebastian Krzyszkowiak Committed by vitalyster

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.
parent b86ef7b3
[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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment