diff --git a/el/rtpengine-recording.init b/el/rtpengine-recording.init index db536127f..fec3b1059 100644 --- a/el/rtpengine-recording.init +++ b/el/rtpengine-recording.init @@ -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 diff --git a/el/rtpengine-recording.service b/el/rtpengine-recording.service index 85f2babba..d0ada0ed8 100644 --- a/el/rtpengine-recording.service +++ b/el/rtpengine-recording.service @@ -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 diff --git a/el/rtpengine-recording.sysconfig b/el/rtpengine-recording.sysconfig index 3763dfdfe..4a2befa9e 100644 --- a/el/rtpengine-recording.sysconfig +++ b/el/rtpengine-recording.sysconfig @@ -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 diff --git a/el/rtpengine.init b/el/rtpengine.init index 147f4fd69..731a1fa00 100644 --- a/el/rtpengine.init +++ b/el/rtpengine.init @@ -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 diff --git a/el/rtpengine.service b/el/rtpengine.service index 79b408618..64709669f 100644 --- a/el/rtpengine.service +++ b/el/rtpengine.service @@ -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 diff --git a/el/rtpengine.sysconfig b/el/rtpengine.sysconfig index 65a73171d..7a378b72b 100644 --- a/el/rtpengine.sysconfig +++ b/el/rtpengine.sysconfig @@ -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. diff --git a/etc/rtpengine-recording.sample.conf b/etc/rtpengine-recording.sample.conf index f29eb5876..39f39c3d5 100644 --- a/etc/rtpengine-recording.sample.conf +++ b/etc/rtpengine-recording.sample.conf @@ -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