mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-25 22:46:34 +00:00
Create restart_services.sh
This commit is contained in:
parent
3207f85e08
commit
19f277e628
17
tubesync/restart_services.sh
Normal file
17
tubesync/restart_services.sh
Normal 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
|
Loading…
Reference in New Issue
Block a user