Skip to content

Self update beszel-agent #268

Answered by henrygd
flo82 asked this question in Q&A
Discussion options

You must be logged in to vote

Not currently. This would be difficult to implement because people are running it on different operating systems, with different configurations, different permissions, etc.

I'd recommend using a cron job or systemd timer to check for updates and restart the service if needed. I will add this functionality to the binary install script in the near future.

Option 1: Cron Job

Create a cron job to check for updates daily and only restart beszel-agent if the update output contains "Successfully updated".

Open the crontab editor:

crontab -e

Add the following cron job:

0 2 * * * /opt/beszel-agent/beszel-agent update | grep -q "Successfully updated" && systemctl restart beszel-agent

Option 2: Syst…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by henrygd
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #267 on November 06, 2024 23:43.