Skip to content

Commit

Permalink
chore: enhance script usability (#311)
Browse files Browse the repository at this point in the history
- Add a `RestartSec` directive to the service configuration for both agent and hub scripts

Signed-off-by: Spedon Wen <[email protected]>
  • Loading branch information
Sped0n authored Dec 3, 2024
1 parent e7d2f0d commit a288d09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions supplemental/scripts/install-agent.sh
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ Environment="KEY=$KEY"
ExecStart=/opt/beszel-agent/beszel-agent
User=beszel
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target
Expand Down
1 change: 1 addition & 0 deletions supplemental/scripts/install-hub.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a288d09

Please sign in to comment.