When I run: # /etc/init.d/radiusd stop The result: * Stopping radiusd... [ !! ] If you make a grep: # ps auxw|grep radiusd the radiusd is running. Reproducible: Always Steps to Reproduce: 1. # /etc/init.d/radiusd stop Actual Results: The radiusd dont stop. Expected Results: freeradius-1.0.1 Searching... [ Results for search key : freeradius ] [ Applications found : 1 ] * net-dialup/freeradius Latest version available: 1.0.1 Latest version installed: 1.0.1 Size of downloaded files: 2,185 kB Homepage: http://www.freeradius.org/ Description: highly configurable free RADIUS server License: GPL-2 Portage 2.0.51-r3 (default-linux/x86/2004.2, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.9 i686) ================================================================= System uname: 2.6.9 i686 Pentium III (Coppermine) Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.90.0.1.1-r3 Headers: sys-kernel/linux-headers-2.4.21-r1 Libtools: sys-devel/libtool-1.5.2-r7 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=i686 -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=i686 -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="http://gentoo.osuosl.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X apm arts avi berkdb bitmap-fonts crypt cups encode f77 foomaticdb fortran gdbm gif gnome gpm gtk gtk2 imlib jpeg kde libg++ libwww mad mbox mikmod milter motif mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell ssl svga tcpd truetype x86 xml2 xmms xv zlib"
Works for me. Do you have the /var/run/radiusd directory? Does the pid file exists in it?
The directory "/etc/init.d/radiusd" not exist in my system, but the file "/var/run/radiusd.pid" exist. # /etc/init.d/radiusd stop * Stopping radiusd... [ !! ] # ps auxw|grep radius root 32084 0.0 1.3 15724 3416 ? Ss 11:43 0:00 /usr/sbin/radiusd root 32085 0.0 1.3 15724 3416 ? S 11:43 0:00 /usr/sbin/radiusd root 32087 0.0 1.3 15724 3416 ? S 11:43 0:00 /usr/sbin/radiusd root 32088 0.0 1.3 15724 3416 ? S 11:43 0:00 /usr/sbin/radiusd root 32089 0.0 1.3 15724 3416 ? S 11:43 0:00 /usr/sbin/radiusd root 32090 0.0 1.3 15724 3416 ? S 11:43 0:00 /usr/sbin/radiusd root 32091 0.0 1.3 15724 3416 ? S 11:43 0:00 /usr/sbin/radiusd # ls -la /var/lib/init.d/started/radiusd lrwxrwxrwx 1 root root 19 Dec 6 11:47 /var/lib/init.d/started/radiusd -> /etc/init.d/radiusd if I kill the process and start the radius the init script work. # /etc/init.d/radiusd start * Starting radiusd... [ ok ]
I've asked you if you have /var/run/radiusd directory. It should be installed by ebuid with radiusd:radiusd as owner:group Maybe it is a sequel of the old ebuild which installed this directory with root:root.
Ok, now every thing work fine. # nano /etc/raddb/radiusd.conf ---radiusd.conf------------------------ ## comment this ##pidfile = /var/run/radiusd.pid ## add radius directory pidfile = /var/run/radiusd/radiusd.pid user = radiusd group = radiusd --------------------------------------- # cd /var/run # rm /var/run/radiusd.pid # mkdir /var/run/radiusd # chown -R radius:radius /var/run/radiusd # chown -R radius:radius /var/log/radiusd # /etc/init.d/radiusd stop * Stopping radiusd... [ ok ] # /etc/init.d/radiusd start * Starting radiusd... [ ok ] Thanks!