From 18df770d64f7c1c64b98935464c674d0e525566f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=BCrz?= Date: Sun, 6 Dec 2015 22:54:53 +0100 Subject: [PATCH] update post installation --- debian/guhd.postinst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/debian/guhd.postinst b/debian/guhd.postinst index 29998e32..c3b40578 100755 --- a/debian/guhd.postinst +++ b/debian/guhd.postinst @@ -21,10 +21,11 @@ # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # restart the guh daemon after update if it's running -service guhd status > /dev/null 2>&1 +systemctl daemon-reload +systemctl status guhd > /dev/null 2>&1 if [ $? -eq 0 ]; then #echo -n "Restart guh daemon..." - service guhd restart + systemctl restart guhd if [ $? -eq 0 ]; then echo "Successfully restarted guh daemon." else