TT#51701 Switch from deprecated /var/run to /run

Change-Id: I5b42c63083e2ee0c1fbfb7dbf1762aa4ef8a0a99
changes/63/34563/1
Guillem Jover 6 years ago
parent ab77ed50af
commit 7b77fb6383

@ -7,7 +7,7 @@
#
# processname: rtpengine-recording
# config: /etc/sysconfig/rtpengine-recording
# pidfile: /var/run/rtpengine-recording.pid
# pidfile: /run/rtpengine-recording.pid
#
### BEGIN INIT INFO
# Provides: rtpengine
@ -29,7 +29,7 @@ fi
prog=rtpengine-recording
runfile=/usr/sbin/${prog}
pidfile=${PIDFILE-/var/run/rtpengine-recording.pid}
pidfile=${PIDFILE-/run/rtpengine-recording.pid}
lockfile=${LOCKFILE-/var/lock/subsys/rtpengine-recording}
RETVAL=0

@ -9,7 +9,7 @@ User=ngcp-rtpengine
Group=daemon
Environment=CFGFILE=/etc/rtpengine/rtpengine-recording.conf
EnvironmentFile=/etc/sysconfig/rtpengine-recording
PIDFile=/var/run/rtpengine-recording.pid
PIDFile=/run/rtpengine-recording.pid
ExecStart=/usr/sbin/rtpengine-recording --config-file=${CFGFILE} --pidfile=$PIDFILE
Restart=on-failure

@ -2,7 +2,7 @@
# http://github.com/sipwise/rtpengine
#
CONFIG_FILE=/etc/rtpengine/rtpengine-recording.conf
PIDFILE=/var/run/rtpengine-recording.pid
PIDFILE=/run/rtpengine-recording.pid
#SET_USER=root
#SET_GROUP=root # GROUP only needs to be set if USER is not set or if the user isn't in the group

@ -7,7 +7,7 @@
#
# processname: rtpengine
# config: /etc/sysconfig/rtpengine
# pidfile: /var/run/rtpengine.pid
# pidfile: /run/rtpengine.pid
#
### BEGIN INIT INFO
# Provides: rtpengine
@ -32,7 +32,7 @@ fi
rtpengine=/usr/sbin/rtpengine
prog=rtpengine
pidfile=${PIDFILE-/var/run/rtpengine.pid}
pidfile=${PIDFILE-/run/rtpengine.pid}
lockfile=${LOCKFILE-/var/lock/subsys/rtpengine}
configfile=${CONFIG_FILE-/etc/rtpengine/rtpengine.conf}
cachefile=/var/lib/ngcp-rtpengine/rtpengine.cfg

@ -9,7 +9,7 @@ User=ngcp-rtpengine
Group=daemon
Environment=CFGFILE=/etc/rtpengine/rtpengine.conf
EnvironmentFile=/etc/sysconfig/rtpengine
PIDFile=/var/run/rtpengine.pid
PIDFile=/run/rtpengine.pid
ExecStart=/usr/sbin/rtpengine --config-file=${CFGFILE} --interface=${INTERFACE} --listen-ng=${LISTEN_UDP} --log-facility=${LOG_FACILITY} --log-level=${LOG_LEVEL}
Restart=on-failure

@ -3,7 +3,7 @@
# main config file
CONFIG_FILE=/etc/rtpengine/rtpengine.conf
# pid
#PIDFILE=/var/run/ngcp-rtpengine-daemon.pid
#PIDFILE=/run/ngcp-rtpengine-daemon.pid
# iptables table for in-kernel forwarding rules. Ignored if "KERNEL=no"
#TABLE=0
# "yes" enables fallback to userspace forwarding only.

@ -6,7 +6,7 @@ table = 0
# num-threads = 16
### where to forward to (unix socket)
# forward-to = /var/run/rtpengine/sock
# forward-to = /run/rtpengine/sock
### where to store recordings: file (default), db, both
# output-storage = db

Loading…
Cancel
Save