TT#49106 Switch from /var/run to the modern /run

Change-Id: I612a90a0c7fc39156a486085f0026c31d333d88c
Warned-by: lintian
changes/70/25870/3
Guillem Jover 6 years ago
parent eba6278122
commit 96d62c79b3

@ -685,7 +685,7 @@ A typical command line (enabling both UDP and NG protocols) thus may look like:
/usr/sbin/rtpengine --table=0 --interface=10.64.73.31 --interface=2001:db8::4f3:3d \ /usr/sbin/rtpengine --table=0 --interface=10.64.73.31 --interface=2001:db8::4f3:3d \
--listen-udp=127.0.0.1:22222 --listen-ng=127.0.0.1:2223 --tos=184 \ --listen-udp=127.0.0.1:22222 --listen-ng=127.0.0.1:2223 --tos=184 \
--pidfile=/var/run/rtpengine.pid --pidfile=/run/rtpengine.pid
Interfaces configuration Interfaces configuration
@ -926,7 +926,7 @@ A typical start-up sequence including in-kernel forwarding might look like this:
# start daemon # start daemon
/usr/sbin/rtpengine --table=0 --interface=10.64.73.31 --interface=2001:db8::4f3:3d \ /usr/sbin/rtpengine --table=0 --interface=10.64.73.31 --interface=2001:db8::4f3:3d \
--listen-ng=127.0.0.1:2223 --tos=184 --pidfile=/var/run/rtpengine.pid --no-fallback --listen-ng=127.0.0.1:2223 --tos=184 --pidfile=/run/rtpengine.pid --no-fallback
Running Multiple Instances Running Multiple Instances
-------------------------- --------------------------
@ -948,9 +948,9 @@ then the start-up sequence might look like this:
echo 'del 1' > /proc/rtpengine/control echo 'del 1' > /proc/rtpengine/control
/usr/sbin/rtpengine --table=0 --interface=10.64.73.31 \ /usr/sbin/rtpengine --table=0 --interface=10.64.73.31 \
--listen-ng=127.0.0.1:2223 --tos=184 --pidfile=/var/run/rtpengine-10.pid --no-fallback --listen-ng=127.0.0.1:2223 --tos=184 --pidfile=/run/rtpengine-10.pid --no-fallback
/usr/sbin/rtpengine --table=1 --interface=192.168.65.73 \ /usr/sbin/rtpengine --table=1 --interface=192.168.65.73 \
--listen-ng=127.0.0.1:2224 --tos=184 --pidfile=/var/run/rtpengine-192.pid --no-fallback --listen-ng=127.0.0.1:2224 --tos=184 --pidfile=/run/rtpengine-192.pid --no-fallback
With this setup, the SIP proxy can choose which instance of *rtpengine* to talk to and thus which local With this setup, the SIP proxy can choose which instance of *rtpengine* to talk to and thus which local
interface to use by sending its control messages to either port 2223 or port 2224. interface to use by sending its control messages to either port 2223 or port 2224.

@ -1,7 +1,7 @@
RUN_RTPENGINE=no RUN_RTPENGINE=no
CONFIG_FILE=/etc/rtpengine/rtpengine.conf CONFIG_FILE=/etc/rtpengine/rtpengine.conf
# CONFIG_SECTION=rtpengine # CONFIG_SECTION=rtpengine
PIDFILE=/var/run/ngcp-rtpengine-daemon.pid PIDFILE=/run/ngcp-rtpengine-daemon.pid
MANAGE_IPTABLES=yes MANAGE_IPTABLES=yes
TABLE=0 TABLE=0
#SET_USER=root #SET_USER=root

@ -32,7 +32,7 @@ if [ "$RUN_RTPENGINE" != "yes" ]; then
log_action_msg "rtpengine not yet configured. Edit $DEFAULTS first." log_action_msg "rtpengine not yet configured. Edit $DEFAULTS first."
exit 0 exit 0
fi fi
[ -z "$PIDFILE" ] && PIDFILE="/var/run/rtpengine.pid" [ -z "$PIDFILE" ] && PIDFILE="/run/rtpengine.pid"
OPTIONS="" OPTIONS=""
START_OPTIONS="" START_OPTIONS=""

@ -7,9 +7,9 @@ Requires=network-online.target
[Service] [Service]
Type=notify Type=notify
EnvironmentFile=/etc/default/ngcp-rtpengine-daemon EnvironmentFile=/etc/default/ngcp-rtpengine-daemon
PIDFile=/var/run/ngcp-rtpengine-daemon.pid PIDFile=/run/ngcp-rtpengine-daemon.pid
ExecStartPre=/usr/sbin/ngcp-rtpengine-iptables-setup start ExecStartPre=/usr/sbin/ngcp-rtpengine-iptables-setup start
ExecStart=/usr/sbin/rtpengine -f -E --pidfile /var/run/ngcp-rtpengine-daemon.pid --config-file /etc/rtpengine/rtpengine.conf --table $TABLE ExecStart=/usr/sbin/rtpengine -f -E --pidfile /run/ngcp-rtpengine-daemon.pid --config-file /etc/rtpengine/rtpengine.conf --table $TABLE
ExecStopPost=/usr/sbin/ngcp-rtpengine-iptables-setup stop ExecStopPost=/usr/sbin/ngcp-rtpengine-iptables-setup stop
[Install] [Install]

@ -1,7 +1,7 @@
RUN_RTPENGINE_RECORDING=no RUN_RTPENGINE_RECORDING=no
CONFIG_FILE=/etc/rtpengine/rtpengine-recording.conf CONFIG_FILE=/etc/rtpengine/rtpengine-recording.conf
# CONFIG_SECTION=rtpengine-recording # CONFIG_SECTION=rtpengine-recording
PIDFILE=/var/run/ngcp-rtpengine-recording-daemon.pid PIDFILE=/run/ngcp-rtpengine-recording-daemon.pid
#SET_USER=root #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 #SET_GROUP=root # GROUP only needs to be set if USER is not set or if the user isn't in the group
# #

@ -31,7 +31,7 @@ if [ "$RUN_RTPENGINE_RECORDING" != "yes" ]; then
log_action_msg "rtpengine-recording not yet configured. Edit $DEFAULTS first." log_action_msg "rtpengine-recording not yet configured. Edit $DEFAULTS first."
exit 0 exit 0
fi fi
[ -z "$PIDFILE" ] && PIDFILE="/var/run/rtpengine-recording.pid" [ -z "$PIDFILE" ] && PIDFILE="/run/rtpengine-recording.pid"
OPTIONS="" OPTIONS=""
START_OPTIONS="" START_OPTIONS=""

@ -26,7 +26,7 @@ tos = 184
# final-timeout = 10800 # final-timeout = 10800
# foreground = false # foreground = false
# pidfile = /var/run/ngcp-rtpengine-daemon.pid # pidfile = /run/ngcp-rtpengine-daemon.pid
# num-threads = 16 # num-threads = 16
port-min = 30000 port-min = 30000

Loading…
Cancel
Save