fix(systemd): Ensure agent starts after network is online (#466)

This commit is contained in:
Henry Dollman
2025-01-21 20:25:07 -05:00
parent 0943e01b71
commit 5b625db57c

View File

@@ -461,7 +461,8 @@ else
cat >/etc/systemd/system/beszel-agent.service <<EOF
[Unit]
Description=Beszel Agent Service
After=network.target
Wants=network-online.target
After=network-online.target
[Service]
Environment="PORT=$PORT"