in order to be able to start my application at boot time i have followed the Upstart instruction.
I have create a file /etc/init/poolparty.conf
, within which i have defined the following:
# poolparty - poolparty job file
# Stanzas
#
# Stanzas control when and how a process is started and stopped
# See a list of stanzas here: http://upstart.ubuntu.com/wiki/Stanzas#respawn
# When to start the service
start on runlevel [2345]
# When to stop the service
stop on runlevel [016]
# Automatically restart process if crashed
respawn
# Essentially lets upstart know the process will detach itself to the background
expect fork
# Run before process
pre-start script
[ -d /var/run/poolparty ] || mkdir -p /var/run/poolparty
echo "starting Poolparty"
end script
# Start the process
exec /opt/poolparty/bin/poolparty start
This is an application that needs the network started, the multi-usermode started. In any case, whatever the machine needs to start first need to be there. It can be started at the end of the boot process.
However when i reboot, nothing happens.
What else do i need to do to start it ? Can someone help ?
When i type service poolparty start
, i either get that the service is already started or nothing. In any case it does not work i checked it.
So if any one could guide me here that would be great. I would like to check the log as well.
Btw /opt/poolparty/bin/poolparty
is an executable script, that set things and call a java application. It uses jsvc64 to start a java application based on Tomcat.