Update restart_services.sh

Restarting a service that was already down should not wait forever.
This commit is contained in:
tcely
2026-02-01 00:59:53 -05:00
committed by GitHub
parent f149714f1b
commit 22463155b6

View File

@@ -36,7 +36,8 @@ do
do
printf -- 'Restarting %-28s' "${service#${_dir}/}..."
_began="$( date '+%s' )"
/command/s6-svc -wr -r "${service}"
# always start the service rather than waiting indefinitely
/command/s6-svc -wr -r -U "${service}"
_ended="$( date '+%s' )"
printf -- '\tcompleted (in %2.1d seconds).\n' \
"$( expr "${_ended}" - "${_began}" )"