Which order for scripts in /root/Startup

Using applications, configuring, problems
Post Reply
Message
Author
Sathors
Posts: 10
Joined: Wed 04 Aug 2010, 13:03

Which order for scripts in /root/Startup

#1 Post by Sathors »

Hello there !

I'm rather new to lucid puppy, and I have one question about scripts that I put in /root/Startup.

Are they executed in a certain order ?
Is there an alphabetical order or something ?
How can I find it by myself ?
Is there a logfile where everything is written during boot ?

Because my puppy is on a usb key and I have to mount a data partition during boot-up, and the other scripts require that this very partition is mounted first.
For the moment it seems to work but I would like to know.

Thank you very much for your help, and forgive me for my bad english.

Good day !
ken geometrics
Posts: 76
Joined: Fri 23 Jan 2009, 14:59
Location: California

Re: Which order for scripts in /root/Startup

#2 Post by ken geometrics »

Sathors wrote:Hello there !

I'm rather new to lucid puppy, and I have one question about scripts that I put in /root/Startup.

Are they executed in a certain order ?
Is there an alphabetical order or something ?
How can I find it by myself ?
Is there a logfile where everything is written during boot ?

Because my puppy is on a usb key and I have to mount a data partition during boot-up, and the other scripts require that this very partition is mounted first.
For the moment it seems to work but I would like to know.

Thank you very much for your help, and forgive me for my bad english.

Good day !
Try this:
Bring up the terminal

Code: Select all

cd Startup
ls *
I believe that the order the scripts get listed is the order that they get done.
2byte
Posts: 353
Joined: Mon 09 Oct 2006, 18:10

#3 Post by 2byte »

For absolute control write one script to call the other scripts in order of execution. Of course you would have to move the other scripts out of /root/Startup.

Sathors
Posts: 10
Joined: Wed 04 Aug 2010, 13:03

#4 Post by Sathors »

Thank you for the answers !

Do you think that the execution of these scripts is triggered by the init script in /etc/rc.d/rc.sysinit ?
And by the way why are there so many scripts in /etc/rc.d ?
Which ones are launched and which ones aren't ?

I'll have a look at it to check wether it uses a ls *.
ken geometrics
Posts: 76
Joined: Fri 23 Jan 2009, 14:59
Location: California

#5 Post by ken geometrics »

Sathors wrote:Thank you for the answers !

Do you think that the execution of these scripts is triggered by the init script in /etc/rc.d/rc.sysinit ?
And by the way why are there so many scripts in /etc/rc.d ?
Which ones are launched and which ones aren't ?

I'll have a look at it to check wether it uses a ls *.
it is the "*" part that matters

consider the command:

Code: Select all

for AA in * ; do 
echo "bla bla $AA" 
done
This will list the files with "bla bla" in front of each. You can use a structure like this to run all the scripts in another directory.
User avatar
upnorth
Posts: 287
Joined: Mon 11 Jan 2010, 19:32
Location: Wisconsin UTC-6 (-5 DST)
Contact:

#6 Post by upnorth »

Hi all:

Does anybody know offhand where the code is that handles the ~/Startup directory on bootup? I'm just curious, because I skimmed through a bunch of scripts, but probably missed it - or is it hardcoded in a binary? :?
User avatar
abushcrafter
Posts: 1418
Joined: Fri 30 Oct 2009, 16:57
Location: England
Contact:

#7 Post by abushcrafter »

The scripts in "/root/Startup/" are run by this script "/usr/sbin/delayedrun".
[url=http://www.adobe.com/flashplatform/]adobe flash is rubbish![/url]
My Quote:"Humans are stupid, though some are clever but stupid." http://www.dependent.de/media/audio/mp3/System_Syn_Heres_to_You.zip http://www.systemsyn.com/
User avatar
upnorth
Posts: 287
Joined: Mon 11 Jan 2010, 19:32
Location: Wisconsin UTC-6 (-5 DST)
Contact:

#8 Post by upnorth »

Thanks Abushcrafter :)
User avatar
abushcrafter
Posts: 1418
Joined: Fri 30 Oct 2009, 16:57
Location: England
Contact:

#9 Post by abushcrafter »

Your welcome.
[url=http://www.adobe.com/flashplatform/]adobe flash is rubbish![/url]
My Quote:"Humans are stupid, though some are clever but stupid." http://www.dependent.de/media/audio/mp3/System_Syn_Heres_to_You.zip http://www.systemsyn.com/
Post Reply