Module: kamailio
Branch: master
Commit: 6a7aa74663a25b52651bc39e986849c62c8a50f4
URL:
https://github.com/kamailio/kamailio/commit/6a7aa74663a25b52651bc39e986849c…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-04-03T08:40:10+02:00
kamctl: try to locate rpc fifo file in /var/run/ or /run/ folders
- cope better with old or non-linux systems
---
Modified: utils/kamctl/kamctl.rpcfifo
---
Diff:
https://github.com/kamailio/kamailio/commit/6a7aa74663a25b52651bc39e986849c…
Patch:
https://github.com/kamailio/kamailio/commit/6a7aa74663a25b52651bc39e986849c…
---
diff --git a/utils/kamctl/kamctl.rpcfifo b/utils/kamctl/kamctl.rpcfifo
index e8fe93f99d..743f15bc4d 100644
--- a/utils/kamctl/kamctl.rpcfifo
+++ b/utils/kamctl/kamctl.rpcfifo
@@ -23,7 +23,11 @@ fi
### parameters
#
if [ -z "$RPCFIFOPATH" ]; then
- RPCFIFOPATH=/run/kamailio/kamailio_rpc.fifo
+ if [ -p "/var/run/kamailio/kamailio_rpc.fifo" ]; then
+ RPCFIFOPATH=/var/run/kamailio/kamailio_rpc.fifo
+ else
+ RPCFIFOPATH=/run/kamailio/kamailio_rpc.fifo
+ fi
fi
#