Commit Graph

7 Commits

Author SHA1 Message Date
Noob Zhang
71b9e4ff17
Add network-online.target in .service files
This helps the daemon work better on IoT devices
like RaspberryPi.
According to systemd's documentation,
`network.target` means there has already been
a network manager started, but the network may
not be "up". On most PCs this does not matter
because the network will turn to "up" almost
immidiately. The IoT devices' network interface
may not be set up quickly enough, so they may
meet that the sing-box daemon is started before
network is ready, which results that sing-box
cannot find a working route. The workaround
of this is restarting sing-box daemon but it
absolutely is not the perfect solution.
As `network-online.target` must be triggered by
network manager after you configured it, I keep
`network.target` so there will be no change to
those who do not enabled proper trigger service
like `NetworkManager-wait-online.service`.

See also: https://systemd.io/NETWORK_ONLINE/
2024-01-16 05:50:07 +08:00
世界
2012c0ca1e
Update release scripts 2023-03-31 14:31:35 +08:00
Dmitry R
c919ad079a
systemd: Add reload command 2023-03-06 16:32:54 +08:00
Gavin Luo
4833f6d5db
Fix systemd service caps for process sniffing 2023-02-09 13:32:31 +08:00
世界
66d8d563eb
Add WorkingDirectory for systemd service 2022-11-28 18:30:50 +08:00
世界
44fcfab9aa
Improve build 2022-08-12 22:58:28 +08:00
世界
9b9b5ebb72
Add linux server scripts 2022-07-30 09:04:01 +08:00