Skip to content

Commit

Permalink
Run systemd service after network is available (unit file fix)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Maxim Shpak authored and Max Lv committed Mar 30, 2021
1 parent e04b73d commit 6329526
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions debian/shadowsocks-libev.service
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6329526

Please sign in to comment.