[Dxspider-support] Auto update of DX-spider??

Keith Maton g6nhu at me.com
Tue Dec 13 11:20:50 GMT 2022


Posting in an old thread to effectively bump it for other people who aren’t aware how straightforward this is to do.

I’ve added these to /spider/local_cmd/crontab in order to keep my node up to date.  I’m assuming it works because even though I’m on the current version already,  I can see that my node did restart at 02:30 this morning which makes me confident it’s working.

73 Keith G6NHU

# Automaticlly check for update at 02:20 on Tuesday morning and then apply at 02:30
20 02 * * 2 spawn("cd /spider; git reset --hard; git pull")
30 02 * * 2 run_cmd('shutdown’)




> On 19 Nov 2021, at 12:25, Dirk Koopman via Dxspider-support <dxspider-support at tobit.co.uk> wrote:
> 
> It's not a daft question...
> 
> I suspect it would help many people if I was more consistent about announcing new versions. I gave up on this many years ago, as only a very small proportion of sysops ever took any notice. To those that do: thank you. 
> 
> And I am in the process of doing more development at the moment, so it might be worth sysops keeping a weather eye on the repo for the next couple of weeks.
> 
> See remarks below:
> 
> 73 Dirk G1TLH
> 
> On 19/11/2021 09:28, gu6efb--- via Dxspider-support wrote:
>> Hi Brian 
>>  
>> These are the entries that I have in my spider crontab and it works for me
>>  
>>  
>> # AutoUpdate DXSpider Server
>> 0 1 * * * spawn("cd /spider; git reset --hard; git pull")
> 
> Whilst this will do an update, it doesn't actually cause the running image to change. To do that you will need to restart it. Of course, if I make an incompatible change, the software may crash and restart automatically :-) I'm not certain how to fix this in a way that only restarts if a new version is available. It's further complicated by the fact that if the only changes are in commands (/spider/cmd/*) then no restart is required - as these are picked up automagically.  
> 
> Also, much as I would like sysops to keep up with the bleeding edge that is mojo (or these days, more like oozing intermittently and gently), I would suggest that once a week, in the middle of the night and on a week day, and not Wednesday morning ('cos something important happens then) this might be better:
> 
> 16 4 * * 1 spawn("cd /spider; git reset --hard; git pull")
> 20 4 * * 1 run_cmd('shutdown')
> 
> PLEASE don't all copy'n'paste this, choose your own day (1,2,4,5) and own time (not 4:16 as shown) otherwise the whole cluster will all restart at once. Won't stop it working (not for long anyway), it will just be rather user hostile (oh wait...).
> 
>> #
>> # AutoUpdate USDB
>> 0 2 * * 1,3,5 spawn("cd /tmp; wget -qN ftp://ftp.w1nr.net/usdbraw.gz; /spider/perl/create_usdb.pl usdbraw.gz")
>> 5 2 * * 1,3,5 run_cmd("load/usdb")
>> 10 2 * * 1,3,5 spawn("rm /tmp/usdbraw.gz")
>> #
>> # AutoUpdate Keps
>> 0 2 * * 2,4,6 spawn("cd /tmp; wget -qN http://www.amsat.org/amsat/ftp/keps/current/nasabare.txt; /spider/perl/convkeps.pl -p nasabare.txt")
>> 5 2 * * 2,4,6 run_cmd("load/keps")
>> 10 2 * * 2,4,6 spawn("rm /tmp/nasabare.txt")
>> #
>> # AutoUpdate CTY.DAT
>> 0 3 * * 0,2,5 spawn("cd /spider/local_data; wget -qN http://www.country-files.com/cty/cty.dat")
>> 0 3 * * 0,2,5 spawn("cd /spider/local_data; wget -qN http://www.country-files.com/cty/wpxloc.dat")
> 
> I'm not sure where wpxloc.dat crept in. I have never used it and it isn't part of the git repository. Please don't download it and/or get confused.
> 
>> 0 3 * * 0,2,5 spawn("cd /spider/local_data; wget -qN http://www.country-files.com/cty/wpxloc.raw")
>> 2 3 * * 0,2,5 spawn("cd /spider/local_data; /spider/perl/create_prefix.pl")
>> 3 3 * * 0,2,5 run_cmd("load/prefix")
>> #
>> 73 Keith 
>>  
>> From: Dxspider-support <dxspider-support-bounces at tobit.co.uk> <mailto:dxspider-support-bounces at tobit.co.uk> On Behalf Of Brian Bowers via Dxspider-support
>> Sent: 19 November 2021 06:39
>> To: dxspider-support at tobit.co.uk <mailto:dxspider-support at tobit.co.uk>
>> Cc: Brian Bowers <g0vax67 at gmail.com> <mailto:g0vax67 at gmail.com>
>> Subject: [Dxspider-support] Auto update of DX-spider??
>>  
>> It may be a really daft question.. however a question never the less….
>> Is there any way of auto updating Dx-Spider automatically?
>> Or is it already built in? Maybe, if it isn’t.. it could be put onto the to do list?
>>  
>> If this is the case, maybe an email message from the system to let the Sysop know it’s updated.
>>  
>> Best Wishes
>>  
>> Brian G0VAX (Sysop GB7VAX)
>>  
>> Brian Bowers. VR AweldI
>> 
>> 
>> _______________________________________________
>> Dxspider-support mailing list
>> Dxspider-support at tobit.co.uk <mailto:Dxspider-support at tobit.co.uk>
>> https://mailman.tobit.co.uk/mailman/listinfo/dxspider-support
> 
> _______________________________________________
> Dxspider-support mailing list
> Dxspider-support at tobit.co.uk <mailto:Dxspider-support at tobit.co.uk>
> https://mailman.tobit.co.uk/mailman/listinfo/dxspider-support

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.tobit.co.uk/pipermail/dxspider-support/attachments/20221213/1b701c22/attachment-0001.htm>


More information about the Dxspider-support mailing list