Bootup script

Bootup script

In order to restart KOTS after a server shutdown, the kots-bootup.sh script is needed. You can obtain this script from Labelbox Support

Instructions

Follow these steps to configure the kots-bootup.sh script:

  • Login to the instance via ssh and become root user:
sudo su
  • Copy the kots-bootup.sh script via scp to: /usr/local/bin/
  • Run this command:
chmod +x /usr/local/bin/kots-bootup.sh
  • Add this command after the comments in /etc/rc.local:
bash /usr/local/bin/kots-bootup.sh
  • Run this command to enable rc.local:
chmod +x /etc/rc.d/rc.local

This bootup script will run on every server startup and exit once the Labelbox apps are running stable. To monitor, run: watch and verify that all pods end in a running state (1/1).

kubectl get pods

You can also verify the script is running, as well as watch for it to complete by running:

ps aux | grep bootup

The script can take up to approximately 23 minutes to fully run and terminate once completed.


Did this page help you?