mirror of
https://github.com/fankes/beszel.git
synced 2025-10-20 18:29:29 +08:00
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:
@@ -235,6 +235,7 @@ Environment="KEY=$KEY"
|
|||||||
ExecStart=/opt/beszel-agent/beszel-agent
|
ExecStart=/opt/beszel-agent/beszel-agent
|
||||||
User=beszel
|
User=beszel
|
||||||
Restart=always
|
Restart=always
|
||||||
|
RestartSec=5
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
@@ -105,6 +105,7 @@ ExecStart=/opt/beszel/beszel serve --http "0.0.0.0:$PORT"
|
|||||||
WorkingDirectory=/opt/beszel
|
WorkingDirectory=/opt/beszel
|
||||||
User=beszel
|
User=beszel
|
||||||
Restart=always
|
Restart=always
|
||||||
|
RestartSec=5
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
Reference in New Issue
Block a user