Browse Source

use the sbin scripts to stop

4.0
karl anderson 9 years ago
parent
commit
7bde5075bb
5 changed files with 11 additions and 10 deletions
  1. +2
    -2
      system/systemd/kazoo-applications.service
  2. +2
    -2
      system/systemd/kazoo-ecallmgr.service
  3. +3
    -3
      system/systemd/kazoo-freeswitch.service
  4. +2
    -1
      system/systemd/kazoo-haproxy.service
  5. +2
    -2
      system/systemd/kazoo-kamailio.service

+ 2
- 2
system/systemd/kazoo-applications.service View File

@ -8,8 +8,8 @@ Group=daemon
PermissionsStartOnly=true PermissionsStartOnly=true
ExecStartPre=/usr/sbin/kazoo-applications prepare ExecStartPre=/usr/sbin/kazoo-applications prepare
ExecStart=/usr/sbin/kazoo-applications foreground ExecStart=/usr/sbin/kazoo-applications foreground
ExecReload=/usr/bin/kill -HUP $MAINPID
ExecStop=/usr/sbin/kazoo-applications stop
Restart=on-abort Restart=on-abort
[Install] [Install]
WantedBy=multi-user.target
WantedBy=multi-user.target

+ 2
- 2
system/systemd/kazoo-ecallmgr.service View File

@ -8,8 +8,8 @@ Group=daemon
PermissionsStartOnly=true PermissionsStartOnly=true
ExecStartPre=/usr/sbin/kazoo-ecallmgr prepare ExecStartPre=/usr/sbin/kazoo-ecallmgr prepare
ExecStart=/usr/sbin/kazoo-ecallmgr foreground ExecStart=/usr/sbin/kazoo-ecallmgr foreground
ExecReload=/usr/bin/kill -HUP $MAINPID
ExecStop=/usr/sbin/kazoo-ecallmgr stop
Restart=on-abort Restart=on-abort
[Install] [Install]
WantedBy=multi-user.target
WantedBy=multi-user.target

+ 3
- 3
system/systemd/kazoo-freeswitch.service View File

@ -8,12 +8,12 @@ User=freeswitch
Group=daemon Group=daemon
PermissionsStartOnly=true PermissionsStartOnly=true
# RuntimeDirectory is not yet supported in CentOS 7. A workaround is to use /etc/tmpfiles.d/freeswitch.conf # 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 ExecStartPre=/usr/sbin/kazoo-freeswitch prepare
ExecStart=/usr/sbin/kazoo-freeswitch foreground -nc -nf ExecStart=/usr/sbin/kazoo-freeswitch foreground -nc -nf
ExecReload=/usr/bin/kill -HUP $MAINPID ExecReload=/usr/bin/kill -HUP $MAINPID
Restart=on-abort Restart=on-abort
[Install] [Install]
WantedBy=multi-user.target
WantedBy=multi-user.target

+ 2
- 1
system/systemd/kazoo-haproxy.service View File

@ -11,7 +11,8 @@ Environment=HAPROXY_BIN=/usr/sbin/haproxy-systemd-wrapper
ExecStartPre=/usr/sbin/kazoo-haproxy prepare ExecStartPre=/usr/sbin/kazoo-haproxy prepare
ExecStart=/usr/sbin/kazoo-haproxy foreground ExecStart=/usr/sbin/kazoo-haproxy foreground
ExecReload=/bin/kill -USR2 $MAINPID ExecReload=/bin/kill -USR2 $MAINPID
ExecStop=/usr/sbin/kazoo-haproxy stop
Restart=on-abort Restart=on-abort
[Install] [Install]
WantedBy=multi-user.target
WantedBy=multi-user.target

+ 2
- 2
system/systemd/kazoo-kamailio.service View File

@ -8,8 +8,8 @@ Group=daemon
PermissionsStartOnly=true PermissionsStartOnly=true
ExecStartPre=/usr/sbin/kazoo-kamailio prepare ExecStartPre=/usr/sbin/kazoo-kamailio prepare
ExecStart=/usr/sbin/kazoo-kamailio foreground ExecStart=/usr/sbin/kazoo-kamailio foreground
ExecReload=/usr/bin/kill -HUP $MAINPID
ExecStop=/usr/sbin/kazoo-kamailio stop
Restart=on-abort Restart=on-abort
[Install] [Install]
WantedBy=multi-user.target
WantedBy=multi-user.target

Loading…
Cancel
Save