From 32a3802cba465bef6c840c02a6a67c23600fb61c Mon Sep 17 00:00:00 2001 From: ohrensessel Date: Wed, 27 Aug 2014 15:39:09 +0200 Subject: [PATCH] use full path within check_gateway script --- files/usr/local/bin/check_gateway | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/files/usr/local/bin/check_gateway b/files/usr/local/bin/check_gateway index b4b7e72..43e4683 100644 --- a/files/usr/local/bin/check_gateway +++ b/files/usr/local/bin/check_gateway @@ -23,12 +23,12 @@ OLD_STATE="$(cat $MESH/gw_mode)" # Check whether gateway modus has been deactivated if [ "$NEW_STATE" == "off" ]; then # Shutdown DHCP server to prevent renewal of leases - service isc-dhcp-server stop + /usr/sbin/service isc-dhcp-server stop fi # Check whether gateway modus has been activated if [ "$NEW_STATE" == "server" ]; then - # Restart DHCP server and radvd daemon - service isc-dhcp-server start + # Restart DHCP server + /usr/sbin/service isc-dhcp-server start fi done