[RADIATOR] radiator systemd unit file

Eric W. Bates ericx at whoi.edu
Thu Jul 27 22:40:48 UTC 2017


I'm a BSD'er so systemd is quite a mystery. I appreciate the input.

On 07/26/2017 08:51, Hartmaier Alexander wrote:
> The service file in goodies is *very* suboptimal as it uses pid files
> which is one of the major benefits of systemd not requiring those and
> monitoring processes directly.
> 
> Here is ours:
> 
> # radiator-aaa.service
> #
> # Systemd script for Radiator RADIUS Server
> # Copy this script to /lib/systemd/system
> # and run from console: systemctl enable radiator-aaa.service
> #
> # Copy this file to a different name and edit the [Service]
> # variables to run multiple radiusd instances. Make sure
> # PIDFile is different for each instance.
> #
> 
> [Unit]
> Description=Radiator-AAA
> 
> # Make sure your databases and other services required by
> # Radiator are running before radiusd starts
> After=syslog.target
> After=network.target
> 
> [Service]
> RuntimeDirectory=radiator-aaa
> 
> # Use RADIATOR_ARGS to add any command line arguments such as name=value
> # global variables or -I for local installation directory
> Environment="RADIATOR_ARGS="
> Environment="RADIATOR_CONFIG=/etc/radiator-aaa/radius.cfg"
> # to log in UTC, also the startup message which is logged before 
> StartupHook
> Environment="TZ=UTC"
> 
> User=radiator
> 
> # If process dies it will be automatically restarted
> Restart=always
> 
> ExecStart=/home/radiator/perl5/perlbrew/perls/RADIATOR-Debian8-Perl5.22/bin/perl 
> 
> /home/radiator/perl5/perlbrew/perls/RADIATOR-Debian8-Perl5.22/bin/radiusd
> -foreground -config_file $RADIATOR_CONFIG $RADIATOR_ARGS
> 
> [Install]
> WantedBy=multi-user.target
> 
> 
> @Tuure: would be great if you update the service file in goodies.
> 
> Best regards, Alex
> 
> On 2017-07-25 18:14, Eric W. Bates wrote:
>> perfect. Thank you.
>>
>> On 7/25/2017 11:03 AM, Tuure Vartiainen wrote:
>>> Hi Eric,
>>>
>>>> On 25 Jul 2017, at 17.29, Eric W. Bates <ericx at whoi.edu> wrote:
>>>>
>>>> Anyone written a systemd unit file for radiator?
>>>>
>>> you can find one example from goodies/radiator.service
>>>
>>>
>>> BR
>>> -- 
>>> Tuure Vartiainen <vartiait at open.com.au>
>>>
>>> Radiator: the most portable, flexible and configurable RADIUS server
>>> anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald,
>>> Platypus, Freeside, TACACS+, PAM, external, Active Directory, EAP, TLS,
>>> TTLS, PEAP, TNC, WiMAX, RSA, Vasco, Yubikey, MOTP, HOTP, TOTP,
>>> DIAMETER etc. Full source on Unix, Windows, MacOSX, Solaris, VMS,
>>> NetWare etc.
>>>
>>>
>>>
>>> _______________________________________________
>>> radiator mailing list
>>> radiator at lists.open.com.au
>>> http://lists.open.com.au/mailman/listinfo/radiator
>>>
> 
> 
> 
> *"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"* 
> 
> T-Systems Austria GesmbH Rennweg 97-99, 1030 Wien
> Handelsgericht Wien, FN 79340b
> *"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"* 
> 
> Notice: This e-mail contains information that is confidential and may be 
> privileged.
> If you are not the intended recipient, please notify the sender and then
> delete this e-mail immediately.
> *"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"* 
> 
> _______________________________________________
> radiator mailing list
> radiator at lists.open.com.au
> http://lists.open.com.au/mailman/listinfo/radiator
> 

-- 
Clark 159a, MS 46
508/289-3112

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4188 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.open.com.au/pipermail/radiator/attachments/20170727/f12e34f9/attachment.p7s>


More information about the radiator mailing list