From f8fd3224393a48042a24a19c293a0481207f946e Mon Sep 17 00:00:00 2001 From: Patrick Van der Veken Date: Sun, 1 Sep 2019 20:12:08 +0200 Subject: [PATCH] fix for systemd service on Ubuntu/Mint --- opt/hc/lib/platform/linux/check_linux_named_status.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/opt/hc/lib/platform/linux/check_linux_named_status.sh b/opt/hc/lib/platform/linux/check_linux_named_status.sh index 81b8b75..f55f8d4 100755 --- a/opt/hc/lib/platform/linux/check_linux_named_status.sh +++ b/opt/hc/lib/platform/linux/check_linux_named_status.sh @@ -29,6 +29,7 @@ # @(#) 2019-01-24: arguments fix [Patrick Van der Veken] # @(#) 2019-03-09: added support for --log-healthy [Patrick Van der Veken] # @(#) 2019-03-16: replace 'which' [Patrick Van der Veken] +# @(#) 2019-09-01: fix for systemd service on Ubuntu/Mint [Patrick Van der Veken] # ----------------------------------------------------------------------------- # DO NOT CHANGE THIS FILE UNLESS YOU KNOW WHAT YOU ARE DOING! #****************************************************************************** @@ -37,7 +38,7 @@ function check_linux_named_status { # ------------------------- CONFIGURATION starts here ------------------------- -typeset _VERSION="2019-03-16" # YYYY-MM-DD +typeset _VERSION="2019-09-01" # YYYY-MM-DD typeset _SUPPORTED_PLATFORMS="Linux" # uname -s match # ------------------------- CONFIGURATION ends here --------------------------- @@ -81,7 +82,7 @@ fi # set init script & systemd service case "${LINUX_DISTRO}" in - Debian) + Debian|Ubuntu|*Mint*) _NAMED_INIT_SCRIPT="/etc/init.d/bind9" _NAMED_SYSTEMD_SERVICE="bind9.service" ;;