LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 07-19-2005, 08:42 PM   #1
viniosity
Member
 
Registered: Oct 2001
Location: Washington, DC
Distribution: Debian, Archlinux, Ubuntu, Sidux
Posts: 244

Rep: Reputation: 30
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?
 
Old 07-19-2005, 08:46 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,965
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
Depends on the distro in use ...

In slack I place the calls in /etc/rc.d/rc.local
 
Old 07-19-2005, 08:49 PM   #3
viniosity
Member
 
Registered: Oct 2001
Location: Washington, DC
Distribution: Debian, Archlinux, Ubuntu, Sidux
Posts: 244

Original Poster
Rep: Reputation: 30
Sorry -- this is Ubuntu.

In Arch there is a rc.local file but I don't think that one exists with Ubuntu
 
Old 07-19-2005, 08:52 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,965
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
I'll shuffle your question to the Ubuntu-Forum then
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
running scripts at boot... thedp Suse/Novell 2 10-17-2005 08:21 AM
Autostart Samba & Running scripts at boot DocNick Linux - General 5 11-09-2004 05:02 AM
Need help running scripts from scripts sdouble Linux - Newbie 3 05-31-2004 12:56 PM
My box hangs when running boot scripts elkrammer Linux - Distributions 5 03-31-2003 07:02 PM
Running scripts at boot time saintt Linux - Software 1 08-09-2002 05:03 AM


All times are GMT -5. The time now is 05:57 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration