You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
container-overlay/profiles/templates/homeassistant/check-crashed/check-crashed

19 lines
412 B

# Calculate chmod=755 path=/var/calculate/bin
#!/bin/bash
# The daemon restarts the services that have crashed.
# List the tracked services in /etc/conf.d/check-crashed
RC_MONITOR_RESTART=$@;
while true; do
for svc in $(rc-status --crashed) ; do
for chk in $RC_MONITOR_RESTART ; do
if [ "$chk" = "$svc" ] ; then
rc-service $svc -- --nodeps restart
continue 2
fi
done
done
sleep 1
done