Re: How to run script (sleep360) without delaying bootup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sunday, Apr 22nd 2007 at 19:23 +0200, quoth Nigel Henry:

=>On Sunday 22 April 2007 18:25, Mail List wrote:
=>> On Sunday 22 April 2007 11:11:29 am Nigel Henry wrote:
=>> > it has a "sleep 360" in the script, it justs hangs the bootup for 6 mins
=>> > until the script has run to completion. Script below.
=>>
=>>   Did you try something like
=>>    nohup your-script > /path/tolog 2>&1 &
=>
=>No, but I'm very new to scripting.
=>
=>A little help please. How would I set this up in /etc/rc.d/rc.local? That is 
=>using the script that I previously posted.
=>
=>The script wants to be started from /etc/rc.d/rc.local, but doesn't want to 
=>delay the bootup, which will nullify running the script.
=>
=>The script path is: /usr/local/bin/ntp-restart
=>
=>Nigel.

It's hard to follow this, but I think you'resaying that you added a line 
to rc.local that says

/usr/local/bin/ntp-restart

Just say:

/usr/local/bin/ntp-restart &

which will cause the command to background itself. Boot will proceed and 
the content of the script will execute the sleep while the rest of the 
boot continues. After the sleep ends, the rest of the script will proceed.

Make sense?


-- 
Time flies like the wind. Fruit flies like a banana. Stranger things have  .0.
happened but none stranger than this. Does your driver's license say Organ ..0
Donor?Black holes are where God divided by zero. Listen to me! We are all- 000
individuals! What if this weren't a hypothetical question?
steveo at syslang.net


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux