Skip to content

Commit

Permalink
kamctl: switch from deprecated /var/run to /run
Browse files Browse the repository at this point in the history
The FHS 3.0 [F] has deprecated /var/run in favor of /run. Current
distributions have done so for a long time (for example in Debian
since 6.0 “squeeze”), even though they provide a compatibility
symlink from /var/run to /run. But software like systemd have
started emitting warnings when using /var/run, for example for
its PIDFile directive, which pollutes the logs.
  • Loading branch information
guillemj authored and miconda committed Oct 25, 2019
1 parent a3ce062 commit f66b2dd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion utils/kamctl/kamctl.base
Expand Up @@ -101,7 +101,7 @@ fi
##### ------------------------------------------------ #####
### configuration for starting/stopping kamailio
if [ -z "$PID_FILE" ] ; then
PID_FILE=/var/run/kamailio/kamailio.pid
PID_FILE=/run/kamailio/kamailio.pid
fi
if [ -z "$SYSLOG" ] ; then
SYSLOG=1 # 0=output to console, 1=output to syslog
Expand Down
2 changes: 1 addition & 1 deletion utils/kamctl/kamctl.rpcfifo
Expand Up @@ -23,7 +23,7 @@ fi
### parameters
#
if [ -z "$RPCFIFOPATH" ]; then
RPCFIFOPATH=/var/run/kamailio/kamailio_rpc.fifo
RPCFIFOPATH=/run/kamailio/kamailio_rpc.fifo
fi

#
Expand Down
6 changes: 3 additions & 3 deletions utils/kamctl/kamctlrc
Expand Up @@ -136,7 +136,7 @@
# CTLENGINE="RPCFIFO"

## path to FIFO file for engine RPCFIFO
# RPCFIFOPATH="/var/run/kamailio/kamailio_rpc_fifo"
# RPCFIFOPATH="/run/kamailio/kamailio_rpc_fifo"

## check ACL names; default on (1); off (0)
# VERIFY_ACL=1
Expand All @@ -157,8 +157,8 @@
# STORE_PLAINTEXT_PW=0

## Kamailio START Options
## PID file path - default is: /var/run/kamailio/kamailio.pid
# PID_FILE=/var/run/kamailio/kamailio.pid
## PID file path - default is: /run/kamailio/kamailio.pid
# PID_FILE=/run/kamailio/kamailio.pid

## Extra start options - default is: not set
# example: start Kamailio with 64MB share memory: STARTOPTIONS="-m 64"
Expand Down

0 comments on commit f66b2dd

Please sign in to comment.