[Pkg-voip-commits] [kamailio] 03/03: remove creation of obsolete radius seqfile (Closes: #83736)
Victor Seva
vseva at moszumanska.debian.org
Thu Sep 15 12:15:49 UTC 2016
This is an automated email from the git hooks/post-receive script.
vseva pushed a commit to branch master
in repository kamailio.
commit d6f6df94eae3d8a845bc3ab4593755aee76f2171
Author: Victor Seva <vseva at debian.org>
Date: Thu Sep 15 13:50:45 2016 +0200
remove creation of obsolete radius seqfile (Closes: #83736)
* It was last present in FreeRADIUS client 1.1.6 but is not present in
1.1.7 or in radcli 1.2.0 or above.
---
debian/kamailio.init | 25 -------------------------
1 file changed, 25 deletions(-)
diff --git a/debian/kamailio.init b/debian/kamailio.init
index b14f83a..a0777c2 100644
--- a/debian/kamailio.init
+++ b/debian/kamailio.init
@@ -57,29 +57,6 @@ check_kamailio_config ()
fi
}
-create_radius_seqfile ()
-{
- # Create a radius sequence file to be used by the radius client if
- # radius accounting is enabled. This is needed to avoid any issue
- # with the file not being writable if kamailio first starts as user
- # root because DUMP_CORE is enabled and creates this file as user
- # root and then later it switches back to user kamailio and cannot
- # write to the file. If the file exists before kamailio starts, it
- # won't change it's ownership and will be writable for both root
- # and kamailio, no matter what options are chosen at install time
- RADIUS_SEQ_FILE="$HOMEDIR/kamailio_radius.seq"
- if [ -d $HOMEDIR ]; then
- chown ${USER}:${GROUP} $HOMEDIR
-
- if [ ! -f $RADIUS_SEQ_FILE ]; then
- touch $RADIUS_SEQ_FILE
- fi
-
- chown ${USER}:${GROUP} $RADIUS_SEQ_FILE
- chmod 660 $RADIUS_SEQ_FILE
- fi
-}
-
test -f $DAEMON || exit 0
# Load startup options if available
@@ -123,7 +100,6 @@ OPTIONS="-f $CFGFILE -P $PIDFILE -m $SHM_MEMORY -M $PKG_MEMORY -u $USER -g $GROU
case "$1" in
start|debug)
check_kamailio_config
- create_radius_seqfile
if [ "$1" != "debug" ]; then
check_fork
@@ -142,7 +118,6 @@ case "$1" in
;;
restart|force-reload)
check_kamailio_config
- create_radius_seqfile
$0 stop
sleep 1
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/kamailio.git
More information about the Pkg-voip-commits
mailing list