LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   running scripts at boot (https://www.linuxquestions.org/questions/ubuntu-63/running-scripts-at-boot-344807/)

viniosity 07-19-2005 08:42 PM

running scripts at boot
 
I have two scripts that I run at boot. Here is what I do to execute them (as root):

Code:

cd /usr/local
. woodlands.sh

cd bin/tomcat
. catalina.sh run &

How can I automate this? I tried creating a script in /etc/init.d/ with the lines

Code:

/usr/local/woodlands.sh
/usr/local/bin/tomcat/catalina.sh run &

but that didn't work.. can somebody help me?

Tinkster 07-19-2005 08:46 PM

Depends on the distro in use ...

In slack I place the calls in /etc/rc.d/rc.local

viniosity 07-19-2005 08:49 PM

Sorry -- this is Ubuntu.

In Arch there is a rc.local file but I don't think that one exists with Ubuntu

Tinkster 07-19-2005 08:52 PM

I'll shuffle your question to the Ubuntu-Forum then ;)


All times are GMT -5. The time now is 12:33 AM.