Run shell scripts on state change
The Scailable AI Manager offers the possibility to add code to shell scripts that are run when the AI Manager changes state. These scripts live in
/opt/sclbl/etc/scripts
.Here's a summary of each script and when it is run:
- 1.
/opt/sclbl/etc/scripts/start_sclbl.sh
: This script is executed when starting the Scailable AI Manager. One way to initiate the start is by using the commandsudo /opt/sclbl/etc/init start
orsudo /opt/sclbl/etc/init restart
. You can add custom shell commands to this script to perform any necessary setup or initialization tasks when the AI Manager starts. - 2.
/opt/sclbl/etc/scripts/stop_sclbl.sh
: This script is executed when stopping the Scailable AI Manager. One way to initiate the stop is by using the commandsudo /opt/sclbl/etc/init stop
. You can add custom shell commands to this script to perform any cleanup or shutdown tasks when the AI Manager stops. - 3.
/opt/sclbl/etc/scripts/start_run.sh
: This script is executed when starting an inference session. You can add custom shell commands to this script to perform any setup or configuration required before running AI model(s). For example, starting a camera stream or initializing external devices. - 4.
/opt/sclbl/etc/scripts/stop_run.sh
: This script is executed when stopping an inference session. You can add custom shell commands to this script to perform any cleanup tasks after AI model(s) have finished running. For example, stopping a camera stream or releasing external resources.
By editing these scripts, you can customize the behavior of the Scailable AI Manager and integrate it with your specific environment or requirements.
Last modified 2mo ago