deb
or
PKG
packages and start and restart
radiusd
automatically with the
systemd
command. On Windows, you can run Radiator as
a system service that will automatically start and restart.systemd
service unit files. The default installation
and its systemd
configuration is described in installation
section. Copies of the service unit files are also available in
directory /opt/radiator/radiator/goodies/
/usr/lib/systemd/system
. The
local customisations, also called drop-in files, should go into
/etc/systemd/system/radiator.service.d/
directory.
For example:% cat /etc/systemd/system/radiator.service.d/stdout-stderr.conf [Service] # Standard output and error can be connected (redirected) to a file # instead the usual default of journal StandardOutput=file:/var/log/radiator/radiator-stdout.log StandardError=file:/var/log/radiator/radiator-stderr.log
systemd
behaviour to capture
stdout
and stderr
and write them
to separate files in the log directory. This allows for easier capture of
LDAP level debugging that is not visible for Radiator, as described in
Section 3.9.11. Debug
and Section 3.9.12. DebugTLS.conf
. Before using a new drop-in file,
systemd
likely requires 'systemctl
daemon-reload
' command./opt/radiator/radiator/goodies/
for additional customisation options, such as allowing Radiator to access
the privileged winbidd
socket for AuthBy
NTLM
.Win32::Daemon
Perl module installed.perl c:\perl64\bin\radiusd -install
C:\Program
Files\Radiator\radius.cfg
perl c:\perl64\bin\radpwtst -user mikem -password fred
C:\Program
Files\Radiator\radius.cfg
. You need to restart the Radiator
service using the Services control panel after making any changes to
the configuration file in order for the change to take effect.perl c:\perl64\bin\radiusd
. Since a
Windows service has no “current directory” or “Current drive”, you must be
very sure that your Radiator configuration file contains no relative file
names. Every file name mentioned must be a fully qualified path name,
including the drive name, such as.:
DbDir C:\Program Files\Radiator
goodies/linux-radiator.init
.cp goodies/linux-radiator.init /etc/init.d/radiator chmod 755 /etc/init.d/radiator chkconfig -add radiator
/etc/init.d/radiator start
/etc/init.d/radiator stop
/etc/init.d/radiator restart
/etc/init.d/radiator reload
/etc/init.d/radiator status
/etc/init.d/radiator traceup
/etc/init.d/radiator tracedown
radiusd
to be restarted automatically if it exits
unexpectedly by using the restartWrapper
script.
restartWrapper
is included in the
goodies/
directory of the Radiator distribution. It
is not installed automatically, so if you want to use it, you will
probably want to copy it to your local binaries directory. Radiator must
be run in the foreground with the Foreground parameter or the -foreground
argument. For more information, see Section 3.7.1. Foreground.restartWrapper
never terminates, so you will probably want to run it in the background
with an ampersand (&), especially if you are calling it from a system
boot script.restartWrapper
in your Unix system boot script so
that radiusd
is started automatically at boot time by
restartWrapper
. This will usually involve modifying
/etc/rc.local
or adding a new script to
/etc/rc2.d
, depending on what type of Unix you are
running. See your system documentation for more details about system
start-up scripts.restartWrapper [-h] [-delay n] [-mail address] [-min_interval n (default: 0)] [-sendmail path-to-sendmail] [-syslog facility.level (default: user.err)] [-logger path-to-logger (default: /usr/bin/logger)] "command to run"
-h
-delay n
-min_interval n
-mail address
-sendmail path-to-sendmail
/usr/lib/sendmail
.-syslog facility.level
-logger path-to-logger
/usr/bin/logger
."command to run"
radiusd
with a specified config file.
If it stops, send email to mikem@open.com.au and wait 2 seconds before
restarting it.restartWrapper -mail mikem@open.com.au -delay 2 \ "/bin/radiusd -config_file /etc/radius.cfg \ -foreground" &
restartWrapper
or init
, you can instead arrange for the Unix
inetd(1)
super server to start
radiusd
the first time it is required (and to restart
it if it stops unexpectedly). In order to do this, you must add a new line
to the inetd
configuration file (usually
/etc/inetd.conf
). You must also ensure that the
radius port number you wish to use is configured into the /etc/services
file. You must also ensure that Radiator is configured to run in the
foreground with the Foreground parameter or the -foreground argument. For
more information, see Section 3.7.1. Foreground.inetd
line you add will look something like this (the
line has been wrapped due to its length in this example):# Start Radiator on demand radius dgram udp wait root /bin/radiusd radiusd -config_file /etc/radius.cfg -foreground
/etc/inetd.conf
, you will need to tell
inetd
to reread its configuration file by sending it
a HUP signal with something likekill -HUP pid-of-inetd
radiusd
is not
already running, inetd
will automatically start
radiusd
. If radiusd
stops some
time later, inetd
will restart it when the next
request arrives. For more details on using and configuring
inetd
, consult your Unix vendor's
documentation.init(1)
. Add something
like this to /etc/inittab
:ra:2345:respawn:/usr/bin/radiusd -config_file \ /etc/raddb/radius.cfg -foreground