ingress #1
13
cookcli/rootfs/etc/services.d/cookcli/finish
Normal file
13
cookcli/rootfs/etc/services.d/cookcli/finish
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
#!/usr/bin/with-contenv bashio
|
||||||
|
set -e
|
||||||
|
|
||||||
|
EXIT_CODE=$1
|
||||||
|
bashio::log.warning "CookCLI s'est arrêté avec le code ${EXIT_CODE}"
|
||||||
|
|
||||||
|
if [ ${EXIT_CODE} -eq 0 ]; then
|
||||||
|
bashio::log.info "Arrêt normal de CookCLI"
|
||||||
|
else
|
||||||
|
bashio::log.warning "Redémarrage de CookCLI dans 5 secondes..."
|
||||||
|
sleep 5
|
||||||
|
exit ${EXIT_CODE}
|
||||||
|
fi
|
||||||
Loading…
Reference in a new issue