13 lines
234 B
Plaintext
13 lines
234 B
Plaintext
# Stop runit services
|
|
|
|
echo -n 'Waiting for services to stop...'
|
|
/usr/local/sbin/svwaitdown -k -t350 /service/*
|
|
if [ $? -eq 0 ]; then
|
|
echo 'ok.'
|
|
elif [ $? -eq 111 ]; then
|
|
echo 'timeout.'
|
|
else
|
|
echo 'ok. $? services had errors.'
|
|
fi
|
|
|