mirror of
https://github.com/fankes/beszel.git
synced 2025-10-19 01:39:34 +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
|
||||
User=beszel
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user