Gentoo Archives: gentoo-commits

From: "Diego Petteno (flameeyes)" <flameeyes@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-dialup/freeradius/files: radius.conf-r3 radius.init-r3
Date: Fri, 28 Dec 2012 13:08:34
Message-Id: 20121228130818.1B3802171D@flycatcher.gentoo.org
1 flameeyes 12/12/28 13:08:18
2
3 Modified: radius.conf-r3 radius.init-r3
4 Log:
5 Minimal improvement on the init script.
6
7 (Portage version: 2.2.0_alpha149/cvs/Linux x86_64, signed Manifest commit with key 1CD13C8AD4301342)
8
9 Revision Changes Path
10 1.2 net-dialup/freeradius/files/radius.conf-r3
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dialup/freeradius/files/radius.conf-r3?rev=1.2&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dialup/freeradius/files/radius.conf-r3?rev=1.2&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dialup/freeradius/files/radius.conf-r3?r1=1.1&r2=1.2
15
16 Index: radius.conf-r3
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-dialup/freeradius/files/radius.conf-r3,v
19 retrieving revision 1.1
20 retrieving revision 1.2
21 diff -u -r1.1 -r1.2
22 --- radius.conf-r3 30 Sep 2012 07:01:04 -0000 1.1
23 +++ radius.conf-r3 28 Dec 2012 13:08:17 -0000 1.2
24 @@ -8,5 +8,9 @@
25 pidfile=/var/run/radiusd/radiusd.pid
26
27 # Change these values if you change them in /etc/raddb/radiusd.conf
28 -# RADIUSD_USER=radius
29 -# RADIUSD_GROUP=radius
30 +#RADIUSD_USER=radius
31 +#RADIUSD_GROUP=radius
32 +
33 +# If you set up logging to syslog in /etc/raddb/radiusd.conf, you want
34 +# to uncomment the following line.
35 +#rc_use="logger"
36
37
38
39 1.3 net-dialup/freeradius/files/radius.init-r3
40
41 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dialup/freeradius/files/radius.init-r3?rev=1.3&view=markup
42 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dialup/freeradius/files/radius.init-r3?rev=1.3&content-type=text/plain
43 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dialup/freeradius/files/radius.init-r3?r1=1.2&r2=1.3
44
45 Index: radius.init-r3
46 ===================================================================
47 RCS file: /var/cvsroot/gentoo-x86/net-dialup/freeradius/files/radius.init-r3,v
48 retrieving revision 1.2
49 retrieving revision 1.3
50 diff -u -r1.2 -r1.3
51 --- radius.init-r3 22 Oct 2012 02:58:59 -0000 1.2
52 +++ radius.init-r3 28 Dec 2012 13:08:17 -0000 1.3
53 @@ -1,7 +1,7 @@
54 #!/sbin/runscript
55 # Copyright 1999-2012 Gentoo Foundation
56 # Distributed under the terms of the GNU General Public License v2
57 -# $Header: /var/cvsroot/gentoo-x86/net-dialup/freeradius/files/radius.init-r3,v 1.2 2012/10/22 02:58:59 flameeyes Exp $
58 +# $Header: /var/cvsroot/gentoo-x86/net-dialup/freeradius/files/radius.init-r3,v 1.3 2012/12/28 13:08:17 flameeyes Exp $
59
60 command=/usr/sbin/radiusd
61 command_args="${RADIUSD_OPTS}"
62 @@ -9,21 +9,22 @@
63 extra_started_commands="reload"
64
65 depend() {
66 - use dns
67 + need localmount
68 + use dns
69 }
70
71 start_pre() {
72 - if [ ! -f /etc/raddb/radiusd.conf ] ; then
73 - eerror "No /etc/raddb/radiusd.conf file exists!"
74 - return 1
75 - fi
76 + if [ ! -f /etc/raddb/radiusd.conf ] ; then
77 + eerror "No /etc/raddb/radiusd.conf file exists!"
78 + return 1
79 + fi
80
81 - checkpath -m0750 -o "${RADIUSD_USER:-root}:${RADIUSD_GROUP:-root}" -d \
82 - $(dirname ${pidfile}) /var/log/radius
83 + checkpath -m0750 -o "${RADIUSD_USER:-root}:${RADIUSD_GROUP:-root}" -d \
84 + $(dirname ${pidfile}) /var/log/radius
85 }
86
87 reload() {
88 - ebegin "Reloading radiusd"
89 - kill -HUP $(cat /var/run/radiusd/radiusd.pid)
90 - eend $?
91 + ebegin "Reloading radiusd"
92 + kill -HUP $(cat ${pidfile})
93 + eend $?
94 }