Bladeren bron

kamctl: switch from deprecated /var/run to /run

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.
Guillem Jover 5 jaren geleden
bovenliggende
commit
f66b2dd426
3 gewijzigde bestanden met toevoegingen van 5 en 5 verwijderingen
  1. 1 1
      utils/kamctl/kamctl.base
  2. 1 1
      utils/kamctl/kamctl.rpcfifo
  3. 3 3
      utils/kamctl/kamctlrc

+ 1 - 1
utils/kamctl/kamctl.base

@@ -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

+ 1 - 1
utils/kamctl/kamctl.rpcfifo

@@ -23,7 +23,7 @@ fi
 ### parameters
 #
 if [ -z "$RPCFIFOPATH" ]; then
-	RPCFIFOPATH=/var/run/kamailio/kamailio_rpc.fifo
+	RPCFIFOPATH=/run/kamailio/kamailio_rpc.fifo
 fi
 
 #

+ 3 - 3
utils/kamctl/kamctlrc

@@ -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
@@ -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"