Create restart_services.sh

This commit is contained in:
tcely 2025-04-10 13:07:13 -04:00 committed by GitHub
parent 3207f85e08
commit 19f277e628
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,17 @@
#!/usr/bin/env sh
if [ 0 -eq $# ]
then
set -- \
/run/service/tubesync*-worker \
/run/service/gunicorn \
/run/service/nginx
fi
for service in "$@"
do
printf 1>&2 -- 'Restarting %s... ' "${service}"
/command/s6-svc -wr -r "${service}"
printf 1>&2 -- 'completed.\n'
done
unset -v service