Startup Linux / Unix Service
Service Setup
The instructions below assumes Bastillion for EC2 is installed in the /opt/Bastillion for EC2-jetty directory as described in the quick start. The JETTY_HOME will need to be adjusted, if Bastillion for EC2 is installed elsewhere.
cp /opt/Bastillion-EC2-jetty/jetty/bin/jetty.sh /etc/init.d/bastillion-ec2
echo JETTY_HOME=/opt/Bastillion-EC2-jetty/jetty > /etc/default/bastillion-ec2
service bastillion-ec2 start
Setting Run-Level
Setting the run-level may vary based on distribution, please refer to your distro's documentation. The run-level may be manually set as follows:
ln -s /etc/init.d/bastillion-ec2 /etc/rc3.d/S99bastillion-ec2
ln -s /etc/init.d/bastillion-ec2 /etc/rc5.d/S99bastillion-ec2
ln -s /etc/init.d/bastillion-ec2 /etc/rc3.d/K01bastillion-ec2
ln -s /etc/init.d/bastillion-ec2 /etc/rc5.d/K01bastillion-ec2