How to start automatically the Stack on Linux?
You can find below how to make the BitNami Stack servers start at boot time. To do that it is necessary to install the main "ctlscript.sh" as a service. It is important that you installed the Stack as root user and you will need root privileges to do it.
Debian-like distribution (Debian, Ubuntu, etc)
1. Copy the installdir/ctlscript.sh file to /etc/init.d . It is advisable to rename this script to something more specific, like “bitnami-drupal”.
$ sudo cp ${installdir}/ctlscript.sh /etc/init.d/bitnami-drupal
2. We will use rc-update.d to add the script to the desired runlevels.
$ sudo update-rc.d -f bitnami-drupal start 80 2 3 4 5 . stop 30 0 1 6 .
As you can see, we define the priority (80 for start and 30 for stop) and the runlevels in which the script will be executed. The result of this command will be something like
Adding system startup for /etc/init.d/bitnami-drupal ... /etc/rc0.d/K30bitnami-bitnami-drupal -> ../init.d/drupal /etc/rc1.d/K30bitnami-bitnami-drupal -> ../init.d/drupal /etc/rc6.d/K30bitnami-drupal -> ../init.d/bitnami-drupal /etc/rc2.d/S80bitnami-drupal -> ../init.d/bitnami-drupal /etc/rc3.d/S80bitnami-drupal -> ../init.d/bitnami-drupal /etc/rc4.d/S80bitnami-drupal -> ../init.d/bitnami-drupal /etc/rc5.d/S80bitnami-drupal -> ../init.d/bitnami-drupal
And that’s it, the servers will be loaded at boot time. To revert the changes, just type
$ sudo update-rc.d -f bitnami-drupal remove