LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   running scripts at start up in Debian... (https://www.linuxquestions.org/questions/linux-newbie-8/running-scripts-at-start-up-in-debian-680186/)

mahi 10-31-2008 01:19 AM

running scripts at start up in Debian...
 
hello people...
i wanted to know how to run (shell)scripts at start up....
for example I'm using Debian...
suppose that I've written a shell script moun.sh to mount my windows drives onto local linux file system...
every time i boot Debian i need to run this script manually..
Is there any mechanism to make it executable at startup...???
It would be very helpfull to configure my system to my needs..
so anybody who knows please help....

maradnus 10-31-2008 01:23 AM

rc.local file
 
Hi

One simple way is to put the script in /etc/rc.d/rc.local file.

Have a good day

mahi 10-31-2008 03:10 AM

Quote:

Originally Posted by maradnus (Post 3326947)
Hi

One simple way is to put the script in /etc/rc.d/rc.local file.

Have a good day


ok... thank you..
actually in my system there was no /etc/rc.d folder..
rc.local was found in /etc/init.d ...
and it worked....
thanks a lot anyways... :)

roy_lt_69 10-31-2008 04:02 AM

/etc/rc.local, /etc/profile, ~/.bash_profile, ~/.profile, ~/.bashrc, etc (depending on your setup/distro).
Soooo many choices! Each with their own quirks!


All times are GMT -5. The time now is 08:24 AM.