[Dxspider-support] updating with GIT

Fabrizio Alberti iz5msm at gmail.com
Tue Nov 25 16:13:01 GMT 2014


Why you also the git reset command too?

Inviato da cellulare
Il 25/nov/2014 17:10 "Dirk Koopman" <djk at tobit.co.uk> ha scritto:

> Mike & Fabrizio
>
> I agree that it is probably not a good idea to have an automatic update as
> source control can go wrong, particularly if one ever does any mods or
> updates the prefix list manually.
>
> But if I were doing it, bearing in mind that I don't use a httpd interface
> nor copy my spots into a database, and that also I don't do any (unofficial
> [cough] :-) mods, then this line of cron may help you:
>
> 13 3 * * 2 cd /spider; git reset --hard; git pull; service dxspider restart
>
> You log in as root and do a 'crontab -e' and add the above line to it.
> That will run that set of commands at 03:13 every Tuesday. Hopefully that
> doesn't coincide with many important contests :-)
>
> I have resisted the temptation to add automatic updating to the code
> (something I could do fairly easily) over the years because I don't want
> the whole DXSpider part of the cluster failing because of some stupid
> mistake on my part. And there have been one or two mistakes in that
> category since 1998 which, while they have been caught and fixed quickly,
> caused a few (keen) nodes to crash. How much worse would that have been,
> had all 250 nodes gone down at once?
>
> But I really would like people to update when I ask them to do so...
>
> Dirk
>
> On 25/11/14 10:40, Fabrizio Alberti wrote:
>
>> Hi Mike,
>> in my humble opinion, is not a good idea use cron to do some git
>> operations. But althoug...
>> For me I made 3 simple script but please note this:
>> My Distro is CentOS
>> I've used a php/mysql frontend also for query/reading my cluster
>> (http://dxcluster.grupporadiofirenze.net)
>> I put the "sysop" user in sudoers, to do some operations in specific,
>> start and stop service and daemons.
>>
>> All scripts are in sysop home folder.
>>
>> First script, put off all service and its name is stopspider.sh:
>> #!/bin/bash
>> stop dxspider
>> service httpd stop
>> service mysqld stop
>>
>> Second script put on all service and its name is startspider.sh
>> #!/bin/bash
>> service httpd start
>> service mysqld start
>> start dxspider
>>
>> Next the final script do the stop, update, and restart the spider, and
>> its name is dxupdate.sh
>> #!/bin/bash
>> sudo /home/sysop/stopspider.sh
>> cd /spider
>> git pull
>> sudo /home/sysop/startspider.sh
>>
>> So launching the latest script, interactively, you can, entering the
>> sysop password, do the update.
>> Working with the sudoers file, you can also, omit to enter the sysop
>> password.
>>
>> So you can cron an update launching the dxupdate.sh. Beware the paths
>> during cron operation.
>>
>> I hope this answer your question.
>>
>>
>>
>>
>>
>>
>>
>>
>> 2014-11-23 23:39 GMT+01:00 Michael Carper <mike at wa9pie.net
>> <mailto:mike at wa9pie.net>>:
>>
>>     Sorry to ring this out again.. but... anybody out there?
>>
>>     I'm still hoping to find an answer.
>>
>>     What's the correct syntax for GIT to put in the crontab?
>>
>>     Mike, WA9PIE
>>
>>     On Fri, Nov 21, 2014 at 8:21 PM, Michael Carper <mike at wa9pie.net
>>     <mailto:mike at wa9pie.net>> wrote:
>>
>>         Sorry to ask a stupid question, but...
>>
>>         I don't think my node is updating reliably.  Does GIT include
>>         the cty.dat and wpxraw files?
>>
>>         What's the correct syntax for this in my crontab?
>>
>>         Mike, WA9PIE
>>         WA9PIE-2
>>
>>         On Fri, Nov 21, 2014 at 4:21 PM, Ian Maude <maudeij at gmail.com
>>         <mailto:maudeij at gmail.com>> wrote:
>>
>>             Done and restarted and now on v1.55 build 0.164.  Thanks
>>
>>             73 Ian
>>
>>             On 21 November 2014 18:06, Dirk Koopman <djk at tobit.co.uk
>>             <mailto:djk at tobit.co.uk>> wrote:
>>              > On 20/11/14 08:22, Ian Maude wrote:
>>              >>
>>              >> Hi all,
>>              >> I have *finally* moved over to GIT for updating my
>>             clusters.  HB9DRV-9
>>              >> is running 1.55 build 0.158 but GB7MBC is running 1.55
>>             build 0.138.
>>              >> Both clusters report they are up to date.  can anyone
>>             tell me how to
>>              >> fix this please?
>>              >
>>              >
>>              > What is the latest entry in your Changes file?
>>              >
>>              > Have you done:
>>              >
>>              > cd /spider
>>              > git reset --hard
>>              >
>>              > Dirk
>>              >
>>
>>             _______________________________________________
>>             Dxspider-support mailing list
>>             Dxspider-support at dxcluster.org
>>             <mailto:Dxspider-support at dxcluster.org>
>>             http://mailman.tobit.co.uk/mailman/listinfo/dxspider-support
>>
>>
>>
>>
>>     _______________________________________________
>>     Dxspider-support mailing list
>>     Dxspider-support at dxcluster.org <mailto:Dxspider-support at dxcluster.org
>> >
>>     http://mailman.tobit.co.uk/mailman/listinfo/dxspider-support
>>
>>
>>
>>
>> --
>> Saluti,
>> Fabrizio Alberti - IZ5MSM
>>
>> Avviso privacy: Qualora questo messaggio fosse da Voi ricevuto per
>> errore, vogliate cortesemente darcene notizia a mezzo Fax, oppure e-mail.
>> Qualsiasi trattamento del documento trasmesso da parte di qualsiasi
>> soggetto diverso dal destinatario è proibita, sia ai sensi dell’art. 616
>> c.p. , che ai sensi del Decreto Legislativo 196 del 2003 sulla tutela
>> dei Dati Personali.
>>
>>
>> _______________________________________________
>> Dxspider-support mailing list
>> Dxspider-support at dxcluster.org
>> http://mailman.tobit.co.uk/mailman/listinfo/dxspider-support
>>
>>
>
> _______________________________________________
> Dxspider-support mailing list
> Dxspider-support at dxcluster.org
> http://mailman.tobit.co.uk/mailman/listinfo/dxspider-support
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.tobit.co.uk/pipermail/dxspider-support/attachments/20141125/ce81f77b/attachment.html>


More information about the Dxspider-support mailing list