From 7bde5075bbebc6225928ea9e4ded2f7fd331fc06 Mon Sep 17 00:00:00 2001 From: karl anderson Date: Wed, 28 Sep 2016 14:18:31 -0700 Subject: [PATCH] use the sbin scripts to stop --- system/systemd/kazoo-applications.service | 4 ++-- system/systemd/kazoo-ecallmgr.service | 4 ++-- system/systemd/kazoo-freeswitch.service | 6 +++--- system/systemd/kazoo-haproxy.service | 3 ++- system/systemd/kazoo-kamailio.service | 4 ++-- 5 files changed, 11 insertions(+), 10 deletions(-) diff --git a/system/systemd/kazoo-applications.service b/system/systemd/kazoo-applications.service index 4727b16..34a860c 100644 --- a/system/systemd/kazoo-applications.service +++ b/system/systemd/kazoo-applications.service @@ -8,8 +8,8 @@ Group=daemon PermissionsStartOnly=true ExecStartPre=/usr/sbin/kazoo-applications prepare ExecStart=/usr/sbin/kazoo-applications foreground -ExecReload=/usr/bin/kill -HUP $MAINPID +ExecStop=/usr/sbin/kazoo-applications stop Restart=on-abort [Install] -WantedBy=multi-user.target \ No newline at end of file +WantedBy=multi-user.target diff --git a/system/systemd/kazoo-ecallmgr.service b/system/systemd/kazoo-ecallmgr.service index 5ca18c5..eab29e4 100644 --- a/system/systemd/kazoo-ecallmgr.service +++ b/system/systemd/kazoo-ecallmgr.service @@ -8,8 +8,8 @@ Group=daemon PermissionsStartOnly=true ExecStartPre=/usr/sbin/kazoo-ecallmgr prepare ExecStart=/usr/sbin/kazoo-ecallmgr foreground -ExecReload=/usr/bin/kill -HUP $MAINPID +ExecStop=/usr/sbin/kazoo-ecallmgr stop Restart=on-abort [Install] -WantedBy=multi-user.target \ No newline at end of file +WantedBy=multi-user.target diff --git a/system/systemd/kazoo-freeswitch.service b/system/systemd/kazoo-freeswitch.service index 095bcab..bb8f019 100644 --- a/system/systemd/kazoo-freeswitch.service +++ b/system/systemd/kazoo-freeswitch.service @@ -8,12 +8,12 @@ User=freeswitch Group=daemon PermissionsStartOnly=true # RuntimeDirectory is not yet supported in CentOS 7. A workaround is to use /etc/tmpfiles.d/freeswitch.conf -#RuntimeDirectory=/run/freeswitch -#RuntimeDirectoryMode=0750 +# RuntimeDirectory=/run/freeswitch +# RuntimeDirectoryMode=0750 ExecStartPre=/usr/sbin/kazoo-freeswitch prepare ExecStart=/usr/sbin/kazoo-freeswitch foreground -nc -nf ExecReload=/usr/bin/kill -HUP $MAINPID Restart=on-abort [Install] -WantedBy=multi-user.target \ No newline at end of file +WantedBy=multi-user.target diff --git a/system/systemd/kazoo-haproxy.service b/system/systemd/kazoo-haproxy.service index ddaaa5a..b5ad2d1 100644 --- a/system/systemd/kazoo-haproxy.service +++ b/system/systemd/kazoo-haproxy.service @@ -11,7 +11,8 @@ Environment=HAPROXY_BIN=/usr/sbin/haproxy-systemd-wrapper ExecStartPre=/usr/sbin/kazoo-haproxy prepare ExecStart=/usr/sbin/kazoo-haproxy foreground ExecReload=/bin/kill -USR2 $MAINPID +ExecStop=/usr/sbin/kazoo-haproxy stop Restart=on-abort [Install] -WantedBy=multi-user.target \ No newline at end of file +WantedBy=multi-user.target diff --git a/system/systemd/kazoo-kamailio.service b/system/systemd/kazoo-kamailio.service index 8c2aeef..a8c7698 100644 --- a/system/systemd/kazoo-kamailio.service +++ b/system/systemd/kazoo-kamailio.service @@ -8,8 +8,8 @@ Group=daemon PermissionsStartOnly=true ExecStartPre=/usr/sbin/kazoo-kamailio prepare ExecStart=/usr/sbin/kazoo-kamailio foreground -ExecReload=/usr/bin/kill -HUP $MAINPID +ExecStop=/usr/sbin/kazoo-kamailio stop Restart=on-abort [Install] -WantedBy=multi-user.target \ No newline at end of file +WantedBy=multi-user.target