From 740a26edb6b8fed08955e13a00fef51701ea477f Mon Sep 17 00:00:00 2001
From: Bob Mottram <bob@robotics.uk.to>
Date: Mon, 2 Nov 2015 12:19:30 +0000
Subject: [PATCH] Use systemd restart

---
 src/freedombone-addsipuser | 2 +-
 src/freedombone-rmsipuser  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/freedombone-addsipuser b/src/freedombone-addsipuser
index d4b40482e..83512af8a 100755
--- a/src/freedombone-addsipuser
+++ b/src/freedombone-addsipuser
@@ -155,6 +155,6 @@ else
     echo "SIP user $MY_USERNAME added"
 fi
 
-service sipwitch restart
+systemctl restart sipwitch
 
 exit 0
diff --git a/src/freedombone-rmsipuser b/src/freedombone-rmsipuser
index 0c514f46c..c79751e08 100755
--- a/src/freedombone-rmsipuser
+++ b/src/freedombone-rmsipuser
@@ -99,7 +99,7 @@ fi
 
 remove_sip_user
 
-service sipwitch restart
+systemctl restart sipwitch
 
 echo "SIP user $MY_USERNAME removed"
 exit 0
-- 
GitLab