[Dxspider-support] updating with GIT

Fabrizio Alberti iz5msm at gmail.com
Tue Nov 25 10:40:19 GMT 2014


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>:

> 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> 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> 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> 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
>>> 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
>
>


-- 
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.tobit.co.uk/pipermail/dxspider-support/attachments/20141125/349a53bc/attachment.html>


More information about the Dxspider-support mailing list