From 876565b421576665f386711e72b4421ab30f2e79 Mon Sep 17 00:00:00 2001 From: Sebastian Krzyszkowiak Date: Wed, 4 Apr 2018 18:41:19 +0200 Subject: [PATCH] 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. --- packaging/debian/debian/spectrum2.service | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packaging/debian/debian/spectrum2.service b/packaging/debian/debian/spectrum2.service index 425f8d266..417f50915 100644 --- a/packaging/debian/debian/spectrum2.service +++ b/packaging/debian/debian/spectrum2.service @@ -1,6 +1,7 @@ [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