Run systemd service after network is available (unit file fix)

There is a race condition between shadowsocks-libev.service and
systemd-resolved.service after reboot/on boot. The shadowsocks
service tries to start before the dns service is started properly
and fails showing the corresponding errors in the logs.
This commit is contained in:
Maxim Shpak
2021-03-31 07:39:59 +08:00
committed by Max Lv
parent e04b73d1b6
commit 6329526199
+1
View File
@@ -12,6 +12,7 @@
Description=Shadowsocks-libev Default Server Service
Documentation=man:shadowsocks-libev(8)
After=network-online.target
Wants=network-online.target
[Service]
Type=simple