Browse Source

let the sbin scripts set the user

4.0
bitbashing 10 years ago
parent
commit
14ea2d6c20
6 changed files with 2 additions and 9 deletions
  1. +2
    -0
      system/sbin/kazoo-haproxy
  2. +0
    -2
      system/systemd/kazoo-bigcouch.service
  3. +0
    -1
      system/systemd/kazoo-freeswitch.service
  4. +0
    -2
      system/systemd/kazoo-haproxy.service
  5. +0
    -2
      system/systemd/kazoo-kamailio.service
  6. +0
    -2
      system/systemd/kazoo-rabbitmq.service

+ 2
- 0
system/sbin/kazoo-haproxy View File

@ -36,6 +36,8 @@ start() {
chown -R ${USER} /var/run/haproxy
mkdir -p /var/log/haproxy
chown -R ${USER} /var/log/haproxy
touch ${PID_FILE}
chown ${USER} ${PID_FILE}
cd ${HOME}
if [ "$(whoami)" == "${USER}" ]; then


+ 0
- 2
system/systemd/kazoo-bigcouch.service View File

@ -4,8 +4,6 @@ After=syslog.target network.target
[Service]
Type=forking
User=bigcouch
Group=daemon
WorkingDirectory=/srv
ExecStart=/usr/sbin/kazoo-bigcouch start
ExecStop=/usr/sbin/kazoo-bigcouch stop


+ 0
- 1
system/systemd/kazoo-freeswitch.service View File

@ -4,7 +4,6 @@ After=syslog.target network.target
After=postgresql.service postgresql-9.3.service postgresql-9.4.service mysqld.service httpd.service
[Service]
User=freeswitch
# RuntimeDirectory is not yet supported in CentOS 7. A workaround is to use /etc/tmpfiles.d/freeswitch.conf
#RuntimeDirectory=/run/freeswitch
#RuntimeDirectoryMode=0750


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

@ -3,8 +3,6 @@ Description=HAProxy Load Balancer Configured for Kazoo
After=syslog.target network.target
[Service]
User=haproxy
Group=haproxy
Environment=HAPROXY_BIN=/usr/sbin/haproxy-systemd-wrapper
Environment=HAPROXY_PID=/run/haproxy.pid
ExecStart=/usr/sbin/kazoo-haproxy foreground


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

@ -3,8 +3,6 @@ Description=Kamailio (OpenSER) - the Open Source SIP Server Configured for Kazoo
After=syslog.target network.target
[Service]
User=kamailio
Group=kamailio
ExecStart=/usr/sbin/kazoo-kamailio foreground
ExecReload=/usr/bin/kill -HUP $MAINPID
Restart=on-abort


+ 0
- 2
system/systemd/kazoo-rabbitmq.service View File

@ -4,8 +4,6 @@ After=syslog.target network.target
[Service]
Type=notify
User=rabbitmq
Group=rabbitmq
WorkingDirectory=/var/lib/rabbitmq
ExecStart=/usr/sbin/kazoo-rabbitmq start
ExecStop=/usr/sbin/kazoo-rabbitmq stop


Loading…
Cancel
Save