18 lines
275 B
Plaintext
18 lines
275 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
set -eu
|
||
|
|
||
|
echo "Starting eg25-manager-monitor"
|
||
|
|
||
|
device=/dev/EG25.AT
|
||
|
|
||
|
while true
|
||
|
do
|
||
|
sleep 60
|
||
|
if ! [ -e ${device} ]
|
||
|
then
|
||
|
echo "${device} not present. Sending SIGTERM to any eg25-manager processes"
|
||
|
killall -q -TERM eg25-manager
|
||
|
fi
|
||
|
done
|