LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-14-2009, 05:42 AM   #1
Jamie Kugelmann
Member
 
Registered: Jun 2008
Location: Metung, Australia
Distribution: Ubuntu Desktop 9.04 and Ubuntu Server 9.04
Posts: 77

Rep: Reputation: 15
Smile Run An sh File on startup in ubuntu server 9.10


hi all, im 11 so i need alot of help here so my question is:
what i am doing is making a web server and i got SmartFoxServer and i was wondering if anyone could tell me how to run a .sh file on startup. the file is called start.sh and i need it started when ubuntu gets booted please get back to me as SOON as possible please.
 
Old 05-14-2009, 08:14 AM   #2
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,126
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
add a line in /etc/rc.local that calls that script, in typical linux setups rc.local gets run as the last thing in the initial startup scripts, make sure you background the call if the script hangs around forever
 
Old 05-14-2009, 06:32 PM   #3
Jamie Kugelmann
Member
 
Registered: Jun 2008
Location: Metung, Australia
Distribution: Ubuntu Desktop 9.04 and Ubuntu Server 9.04
Posts: 77

Original Poster
Rep: Reputation: 15
Thumbs up

thanks, i'll let you know if it works ok see you soon!
 
Old 05-15-2009, 02:24 AM   #4
Jamie Kugelmann
Member
 
Registered: Jun 2008
Location: Metung, Australia
Distribution: Ubuntu Desktop 9.04 and Ubuntu Server 9.04
Posts: 77

Original Poster
Rep: Reputation: 15
Talking

yeh its works thanks!
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
run a script on Server Startup Suicidal9090 Linux - Newbie 3 11-15-2008 02:02 PM
Load .sh file on Linux Ubuntu startup Fired501 Linux - Server 3 01-01-2008 06:09 AM
Has anyone run media server on ubuntu server? turbosikh Ubuntu 2 04-14-2007 04:14 PM
run perl server on startup shahidawan Linux - General 1 03-31-2005 10:53 PM
Apache server and MySQL server won't run at startup! dday007 Linux - General 2 02-07-2003 03:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:36 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration