Message from discussion
/etc/init.dboot.local
Received: by 10.205.123.145 with SMTP id gk17mr5638128bkc.2.1351390683400;
Sat, 27 Oct 2012 19:18:03 -0700 (PDT)
Path: q13ni70393wii.0!nntp.google.com!goblin3!goblin2!goblin.stu.neva.ru!xlned.com!feeder7.xlned.com!border1.hitnews.com!feeder.xennanews.com!nf40.xennanews.com!not-for-mail
From: Cecil Westerhof <Ce...@decebal.nl>
Newsgroups: alt.os.linux.suse
Subject: Re: /etc/init.dboot.local
Organization: Decebal Computing
References: <87mwz7oanw.fsf@Compaq.site.inet>
<af35b3Fr4s3U1@mid.individual.net>
X-Homepage: http://www.decebal.nl/
Date: Sun, 28 Oct 2012 03:15:23 +0100
Message-ID: <877gqbfikk.fsf@Compaq.site.inet>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux)
Cancel-Lock: sha1:GpFXGjDrXO8c5kLPsPDNofyiD6k=
MIME-Version: 1.0
X-Complaints-To: abuse@xennanews.com
Lines: 38
NNTP-Posting-Host: 84.53.123.169 (84.53.123.169)
NNTP-Posting-Date: Sun, 28 Oct 2012 03:16:46 +0100
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Op zondag 28 okt 2012 00:25 CEST schreef Günther Schwarz:
>> I installed leafnode. With cron I fetch every hour the new articles.
>> Because of this I want to also fetch the news when booting. For this I
>> added the script I am using to fetch the articles to:
>> /etc/init.d/boot.local
>>
>> But the script is not called when booting.
>
> Boot.local is processed prior to the network setup just after file
> systems are mounted. That is too early for leafnode.
That was at that moment not the problem. I used:
${HOME}/bin/leafnodeFetch.sh
But when boot.local is run HOME is not defined.
So I changed it to:
/root/bin/leafnodeFetch.sh
But then the network was not up. So I changed it to:
echo /root/bin/leafnodeFetch.sh | at now +1 minutes
>
>> Do I need to do something else?
>
> Rather than using the preconfigured boot.local you might want to set up a
> separate script for init and make sure that the SUSE specific headers
> specify execution after the network is available.
I have a working solution, but in principal is this better of-course.
How should I implement this?
--
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof