Commit Graph

10 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
世界 09b001e795
Revert remove install shell 2023-03-27 08:20:55 +08:00
世界 84904c5206
Create working directory if not exists 2023-03-20 19:33:00 +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
世界 9db3cb5cb7
Update scripts 2023-02-09 13:27:05 +08:00
世界 81e7b0b320
Fix linux package 2022-12-11 11:51:25 +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