diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2022-04-14 19:59:53 +0000 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2022-04-14 19:59:53 +0000 |
commit | 905f6f4d1cf39d7cac7af914a48ec33c7b838b7c (patch) | |
tree | dd0677fab44f31dddb7c936403420f5f362f907f | |
parent | Adding knot-resolver handling in dehydrated service-reload hook. (diff) | |
download | service-tools-905f6f4d1cf39d7cac7af914a48ec33c7b838b7c.tar.xz service-tools-905f6f4d1cf39d7cac7af914a48ec33c7b838b7c.zip |
Using a variable to keep the list of services to restart in dehydrated hook for easier readability.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
-rwxr-xr-x | dehydrated/share/hooks/exit_hook.service-reload | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/dehydrated/share/hooks/exit_hook.service-reload b/dehydrated/share/hooks/exit_hook.service-reload index cee1d98..c3fbdc2 100755 --- a/dehydrated/share/hooks/exit_hook.service-reload +++ b/dehydrated/share/hooks/exit_hook.service-reload @@ -21,9 +21,11 @@ set -e +SERVICES="apache2 haproxy knot postgresql redis-server" + echo " + Reloading services..." -for SERVICE in apache2 haproxy knot postgresql redis-server +for SERVICE in ${SERVICES} do if service ${SERVICE} status > /dev/null 2>&1 then |