LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 11-22-2011, 11:29 AM   #1
ddenton
Member
 
Registered: May 2007
Posts: 114

Rep: Reputation: 15
Upstart script not being run on system startup...


Hello all!

I have an RHEL6 VM running on VMware ESXi 4.1. I created several upstart scripts to start several java programs that need to run when the system starts and continue running until stopped, or to restart if they're stopped unexpectedly.

I believe my syntax is correct here, because the job can be started manually (start <jobname>), and can be started if I manually emit a startup signal (initctl emit startup). What's puzzling is that even when the "start on" directives are set for startup or for runlevels 2-5, the job isn't kicked off when the system boots. I'm hoping someone can give me some input as to why. Here's the job contents...

Quote:
start on startup
#start on runlevel [2345]

respawn
exec </path/to/script/scriptname.sh>
The script is what kicks off the java processes, and starting the script manually works just fine.

I'd really appreciate the community's input.

Thanks!
 
Old 11-23-2011, 08:59 AM   #2
ddenton
Member
 
Registered: May 2007
Posts: 114

Original Poster
Rep: Reputation: 15
Bump...
 
  


Reply

Tags
upstart



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
UpStart script : create folder - true ; run virtualbox - false. wertum Linux - General 1 08-17-2010 05:57 PM
How to run a script at system startup? correro Linux - Newbie 4 01-20-2006 09:12 AM
'cannot stat' script in /etc/rc.d/, try to run script at startup quintan Linux - Software 1 11-21-2005 02:53 AM
Run Script at Startup?? usaf_sp SUSE / openSUSE 5 11-11-2005 01:43 PM
Run a script at startup iain.ross Linux - Newbie 8 08-27-2004 04:03 PM

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

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

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