2 # Copyright (C) The Arvados Authors. All rights reserved.
4 # SPDX-License-Identifier: AGPL-3.0
7 # "restart-dns-server <path-to-restart.txt>" (restart now if needed)
9 # "restart-dns-server <path-to-restart.txt> -d" (wait for restart to be needed, restart, repeat)
13 if [[ "$RESTART_TXT_PATH" == "" ]]; then
16 echo " $0 <path-to-restart.txt> # restart now if needed"
17 echo " $0 <path-to-restart.txt> -d # wait for restart to be needed, restart, repeat"
24 if [ -e $RESTART_TXT_PATH ]; then
25 RESTART_COMMAND=`cat $RESTART_TXT_PATH`
26 echo "restart command: $RESTART_COMMAND"
27 rm -f "$RESTART_TXT_PATH"