[Dxspider-support] How to configure your dxspider to update automatically.
Keith, G6NHU
g6nhu at me.com
Fri Feb 7 15:43:29 GMT 2025
All,
Over the last couple of days, I’ve had two partner sysops say that they’re not running the latest version of dxspider and in each case, I’ve been able to give them a couple of commands to add to their crontab to keep their node updated.
I know this has been mentioned before but not for a while so I thought I’d share the details again.
Log in to your node and edit crontab. You may (or may not) need sudo at the start depending on how you’re logged in.
sudo nano /spider/local_cmd/crontab
Add the following lines:
# Force update Kin's update utilities each night prior to update
30 22 * * * spawn('cd /spider/local_cmd; wget -q https://raw.githubusercontent.com/EA3CV/dxspider_info/main/check_build.pl -O /spider/local_cmd/check_build.pl')
32 22 * * * spawn('cd /spider/local_cmd; wget -q https://raw.githubusercontent.com/EA3CV/dxspider_info/main/undo_newbuild.pl -O /spider/local_cmd/undo_newbuild.pl')
35 22 * * * run_cmd('load/cmd')
# Check for updates on weekdays at 22:40 and 01:07, avoiding contest times at weekends
40 22 * * 1,2,3,4,5 run_cmd("check_build Y 5")
07 01 * * 1,2,3,4,5 run_cmd("check_build Y 5")
You may want to adjust the times slightly because apart from anything else, we don’t want every node updating at exactly the same time when there’s an update.
I have my crontab set to local time rather than UTC.
This is using the excellent script provided by Kin. At 22:30 and 22:32, it grabs a fresh copy of the two scripts from Github in case Kin has made any changes. There are two scripts, check_build which does the actual update and undo_newbuild which can roll back if needed.
Then at 22:40 each weekday night and 01:07 each weekday morning, the script runs which checks for a dxspider update. If there is one available, it first takes a backup before updating. Up to five backups will be kept. The node is only restarted if an update is applied and it’s only down for a fraction of a second.
I hope this is useful.
73 Keith G6NHU
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.tobit.co.uk/pipermail/dxspider-support/attachments/20250207/d42f65e7/attachment-0001.htm>
More information about the Dxspider-support
mailing list