chore: enhance script usability (#311)

- Add a `RestartSec` directive to the service configuration for both agent and hub scripts

Signed-off-by: Spedon Wen <realsped0n@outlook.com>
This commit is contained in:
Spedon
2024-12-04 06:29:19 +08:00
committed by GitHub
parent e7d2f0d82b
commit a288d0925b
2 changed files with 2 additions and 0 deletions

View File

@@ -235,6 +235,7 @@ Environment="KEY=$KEY"
ExecStart=/opt/beszel-agent/beszel-agent
User=beszel
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target

View File

@@ -105,6 +105,7 @@ ExecStart=/opt/beszel/beszel serve --http "0.0.0.0:$PORT"
WorkingDirectory=/opt/beszel
User=beszel
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target