Project

General

Profile

Actions

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?'"

Added by Matthias Güntert over 10 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Low
Assignee:
-
Category:
-
Target version:
-
Start date:
11/25/2013
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Affected Version:
Affected Plus Version:
Affected Architecture:

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
  1. This file was automatically generated
  2. 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 #
  1. $FreeBSD: ports/net/freeradius2/files/radiusd.in,v 1.5 2012/11/17 06:00:00 svnexp Exp $ #
  2. PROVIDE: radiusd
  3. REQUIRE: NETWORKING SERVERS slapd mysql postgresql
  4. KEYWORD: shutdown #
  5. Add the following lines to /etc/rc.conf to enable radiusd: #
  6. radiusd_enable="YES" #

. /etc/rc.subr

name=radiusd
rcvar=radiusd_enable
load_rc_config $name

command=/usr/pbi/freeradius-i386/sbin/radiusd

  1. In debug mode, radiusd doesn't create a pid file, so comment pidfile and
  2. 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"

  1. The radiusd_config parameter is now obsolete. Instead, derive the
  2. configuration directory name from radiusd_flags if possible, otherwise
  3. default to /usr/pbi/freeradius-i386/etc/raddb
    required_dirs=`echo ${radiusd_flags} | sed Ene '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 #
  1. $FreeBSD: ports/net/freeradius2/files/radiusd.sh.in,v 1.8 2012/01/14 08:56:14 dougb Exp $ #
  2. PROVIDE: radiusd
  3. REQUIRE: NETWORKING SERVERS slapd mysql postgresql
  4. KEYWORD: shutdown #
  5. Add the following lines to /etc/rc.conf to enable radiusd: #
  6. radiusd_enable="YES" #

. /etc/rc.subr

name=radiusd
rcvar=radiusd_enable
load_rc_config $name

command=/usr/local/sbin/radiusd

  1. In debug mode, radiusd doesn't create a pid file, so comment pidfile and
  2. 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"

  1. The radiusd_config parameter is now obsolete. Instead, derive the
  2. configuration directory name from radiusd_flags if possible, otherwise
  3. default to /usr/local/etc/raddb
    required_dirs=`echo ${radiusd_flags} | sed Ene '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" ==================================================

Actions

Also available in: Atom PDF