Bug #3343
closed(re)starting freeradius service throws "The command '/usr/local/etc/rc.d/radiusd.sh stop' returned exit code '1', the output was 'radiusd not running?'"
0%
Description
This is related to freeRADIUS version 2.1.12_1/2.2.0 pkg v1.6.7_2 running on 2.1-RELEASE (i386)
Everytime i start or restart freeradius the following shows up in the logs
Nov 25 20:59:17 radiusd64163: Ready to process requests.
Nov 25 20:59:17 radiusd63859: Loaded virtual server <default>
Nov 25 20:59:14 php: /status_services.php: The command '/usr/local/etc/rc.d/radiusd.sh stop' returned exit code '1', the output was 'radiusd not running?'
Nov 25 20:59:13 radiusd68550: Exiting normally.
Nov 25 20:59:13 radiusd68550: Signalled to terminate
everything is working as expected though. maybe status_services.php is referencing the wrong file (this is an upgraded installation of pfsense)? please find bellow my startup files.
==================================================$/root(7): cat /usr/local/etc/rc.d/radiusd.sh ==================================================
#!/bin/sh
- This file was automatically generated
- by the pfSense service handler.
rc_start() {
/usr/pbi/freeradius-i386/etc/rc.d/radiusd onestart
}
rc_stop() {
/usr/pbi/freeradius-i386/etc/rc.d/radiusd onestop
}
case $1 in
start)
rc_start
;;
stop)
rc_stop
;;
restart)
rc_stop
rc_start
;;
esac
==================================================
/root(10): cat /usr/pbi/freeradius-i386/etc/rc.d/radiusd ==================================================
#!/bin/sh #
- $FreeBSD: ports/net/freeradius2/files/radiusd.in,v 1.5 2012/11/17 06:00:00 svnexp Exp $ #
- PROVIDE: radiusd
- REQUIRE: NETWORKING SERVERS slapd mysql postgresql
- KEYWORD: shutdown #
- Add the following lines to /etc/rc.conf to enable radiusd: #
- radiusd_enable="YES" #
. /etc/rc.subr
name=radiusd
rcvar=radiusd_enable
load_rc_config $name
command=/usr/pbi/freeradius-i386/sbin/radiusd
- In debug mode, radiusd doesn't create a pid file, so comment pidfile and
- let rc.subr use a process check on procname (which defaults to command).
#pidfile=/var/run/radiusd/radiusd.pid
extra_commands="reload debug"
debug_cmd="radiusd_debug"
- The radiusd_config parameter is now obsolete. Instead, derive the
- configuration directory name from radiusd_flags if possible, otherwise
- default to /usr/pbi/freeradius-i386/etc/raddb
required_dirs=`echo ${radiusd_flags} | sedEne 's:.*\[^[:space:]d]*d[[:space:]]*([^[:space:]]+).*:\1:p'`
required_dirs=${required_dirs:-"/usr/pbi/freeradius-i386/etc/raddb"}
required_files="${required_dirs}/radiusd.conf"
radiusd_enable=${radiusd_enable-"NO"}
command_args="&"
radiusd_debug()
{
radiusd_flags="-X ${radiusd_flags}"
run_rc_command start
}
run_rc_command "$1" ==================================================
==================================================/root(11): cat /usr/local/etc/rc.d/radiusd ==================================================
#!/bin/sh #
- $FreeBSD: ports/net/freeradius2/files/radiusd.sh.in,v 1.8 2012/01/14 08:56:14 dougb Exp $ #
- PROVIDE: radiusd
- REQUIRE: NETWORKING SERVERS slapd mysql postgresql
- KEYWORD: shutdown #
- Add the following lines to /etc/rc.conf to enable radiusd: #
- radiusd_enable="YES" #
. /etc/rc.subr
name=radiusd
rcvar=radiusd_enable
load_rc_config $name
command=/usr/local/sbin/radiusd
- In debug mode, radiusd doesn't create a pid file, so comment pidfile and
- let rc.subr use a process check on procname (which defaults to command).
#pidfile=/var/run/radiusd/radiusd.pid
extra_commands="reload debug"
debug_cmd="radiusd_debug"
- The radiusd_config parameter is now obsolete. Instead, derive the
- configuration directory name from radiusd_flags if possible, otherwise
- default to /usr/local/etc/raddb
required_dirs=`echo ${radiusd_flags} | sedEne 's:.*\[^[:space:]d]*d[[:space:]]*([^[:space:]]+).*:\1:p'`
required_dirs=${required_dirs:-"/usr/local/etc/raddb"}
required_files="${required_dirs}/radiusd.conf"
radiusd_enable=${radiusd_enable-"NO"}
command_args="&"
radiusd_debug()
{
radiusd_flags="-X ${radiusd_flags}"
run_rc_command start
}
run_rc_command "$1" ==================================================