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!