Bootup script (deprecated)
In order to restart KOTS after a server shutdown, the kots-bootup.sh script is needed. You can obtain this script from Labelbox Support
Follow these steps to configure the kots-bootup.sh script:
- Login to the instance via ssh and become root user:
- 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:
- 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.
Updated 9 months ago