Systemctl start issue on Freeradius 3.0.19
Hello, I installed Freeradius 3.0.19 on centos 7. Everything is working properly but if I start the service with systemctl start radius the service remain in “activating” status: radiusd.service - FreeRADIUS multi-protocol policy server Loaded: loaded (/usr/lib/systemd/system/radiusd.service; enabled; vendor preset: disabled) Active: activating (start) since Thu 2019-05-02 19:52:38 CEST; 31s ago Docs: man:radiusd(8) man:radiusd.conf(5) http://wiki.freeradius.org/ http://networkradius.com/doc/ Process: 6786 ExecStartPre=/bin/chown -R root /usr/local/var/run/radiusd (code=exited, status=0/SUCCESS) Process: 6784 ExecStartPre=/usr/local/sbin/radiusd $FREERADIUS_OPTIONS -Cx -lstdout (code=exited, status=0/SUCCESS) Main PID: 6792 (radiusd) Memory: 8.5M (limit: 2.0G) CGroup: /system.slice/radiusd.service └─6792 /usr/local/sbin/radiusd This is the content of the radiusd.service file: [Unit] Description=FreeRADIUS multi-protocol policy server After=network-online.target Documentation=man:radiusd(8) man:radiusd.conf(5) http://wiki.freeradius.org/ http://networkradius.com/doc/ [Service] Type=notify WatchdogSec=60 NotifyAccess=all PIDFile=/usr/local/var/run/radiusd/radiusd.pid EnvironmentFile=-/etc/sysconfig/radiusd # FreeRADIUS can do static evaluation of policy language rules based # on environmental variables which is very useful for doing per-host # customization. # Unfortunately systemd does not allow variable substitutions such # as %H or $(hostname) in the EnvironmentFile. # We provide HOSTNAME here for convenience. Environment=HOSTNAME=%H # Limit memory to 2G this is fine for %99.99 of deployments. FreeRADIUS # is not memory hungry, if it's using more than this, then there's probably # a leak somewhere. MemoryLimit=2G RuntimeDirectory=radiusd RuntimeDirectoryMode=0775 ExecStartPre=/usr/local/sbin/radiusd $FREERADIUS_OPTIONS -Cx -lstdout ExecStartPre=-/bin/chown -R root /usr/local/var/run/radiusd ExecStart=/usr/local/sbin/radiusd $FREERADIUS_OPTIONS Restart=on-failure RestartSec=5 [Install] WantedBy=multi-user.target Can you tell me how to solve this problem? Thank you Giuseppe
Giuseppe, Please can you copy/paste the output of the command: strings /usr/local/sbin/radiusd | grep "READY=1" On Thu, May 2, 2019 at 3:10 PM Giuseppe Russo < giuseppe.russo@mediacommunications.it> wrote:
Hello, I installed Freeradius 3.0.19 on centos 7. Everything is working properly but if I start the service with systemctl start radius the service remain in “activating” status:
radiusd.service - FreeRADIUS multi-protocol policy server Loaded: loaded (/usr/lib/systemd/system/radiusd.service; enabled; vendor preset: disabled) Active: activating (start) since Thu 2019-05-02 19:52:38 CEST; 31s ago Docs: man:radiusd(8) man:radiusd.conf(5) http://wiki.freeradius.org/ http://networkradius.com/doc/ Process: 6786 ExecStartPre=/bin/chown -R root /usr/local/var/run/radiusd (code=exited, status=0/SUCCESS) Process: 6784 ExecStartPre=/usr/local/sbin/radiusd $FREERADIUS_OPTIONS -Cx -lstdout (code=exited, status=0/SUCCESS) Main PID: 6792 (radiusd) Memory: 8.5M (limit: 2.0G) CGroup: /system.slice/radiusd.service └─6792 /usr/local/sbin/radiusd
This is the content of the radiusd.service file:
[Unit] Description=FreeRADIUS multi-protocol policy server After=network-online.target Documentation=man:radiusd(8) man:radiusd.conf(5) http://wiki.freeradius.org/ http://networkradius.com/doc/
[Service] Type=notify WatchdogSec=60 NotifyAccess=all PIDFile=/usr/local/var/run/radiusd/radiusd.pid EnvironmentFile=-/etc/sysconfig/radiusd
# FreeRADIUS can do static evaluation of policy language rules based # on environmental variables which is very useful for doing per-host # customization. # Unfortunately systemd does not allow variable substitutions such # as %H or $(hostname) in the EnvironmentFile. # We provide HOSTNAME here for convenience. Environment=HOSTNAME=%H
# Limit memory to 2G this is fine for %99.99 of deployments. FreeRADIUS # is not memory hungry, if it's using more than this, then there's probably # a leak somewhere. MemoryLimit=2G
RuntimeDirectory=radiusd RuntimeDirectoryMode=0775 ExecStartPre=/usr/local/sbin/radiusd $FREERADIUS_OPTIONS -Cx -lstdout ExecStartPre=-/bin/chown -R root /usr/local/var/run/radiusd ExecStart=/usr/local/sbin/radiusd $FREERADIUS_OPTIONS Restart=on-failure RestartSec=5
[Install] WantedBy=multi-user.target
Can you tell me how to solve this problem?
Thank you
Giuseppe
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Hello Jorge, there is no output: [root@radius ~]# strings /usr/local/sbin/radiusd | grep "READY=1" [root@radius ~]# > Il giorno 2 mag 2019, alle ore 21:11, Jorge Pereira <jpereira@freeradius.org> ha scritto: > > Giuseppe, > > Please can you copy/paste the output of the command: > > strings /usr/local/sbin/radiusd | grep "READY=1" > > > On Thu, May 2, 2019 at 3:10 PM Giuseppe Russo < > giuseppe.russo@mediacommunications.it> wrote: > >> Hello, >> I installed Freeradius 3.0.19 on centos 7. >> Everything is working properly but if I start the service with systemctl >> start radius the service remain in “activating” status: >> >> radiusd.service - FreeRADIUS multi-protocol policy server >> Loaded: loaded (/usr/lib/systemd/system/radiusd.service; enabled; >> vendor preset: disabled) >> Active: activating (start) since Thu 2019-05-02 19:52:38 CEST; 31s ago >> Docs: man:radiusd(8) >> man:radiusd.conf(5) >> http://wiki.freeradius.org/ >> http://networkradius.com/doc/ >> Process: 6786 ExecStartPre=/bin/chown -R root /usr/local/var/run/radiusd >> (code=exited, status=0/SUCCESS) >> Process: 6784 ExecStartPre=/usr/local/sbin/radiusd $FREERADIUS_OPTIONS >> -Cx -lstdout (code=exited, status=0/SUCCESS) >> Main PID: 6792 (radiusd) >> Memory: 8.5M (limit: 2.0G) >> CGroup: /system.slice/radiusd.service >> └─6792 /usr/local/sbin/radiusd >> >> >> This is the content of the radiusd.service file: >> >> [Unit] >> Description=FreeRADIUS multi-protocol policy server >> After=network-online.target >> Documentation=man:radiusd(8) man:radiusd.conf(5) >> http://wiki.freeradius.org/ http://networkradius.com/doc/ >> >> [Service] >> Type=notify >> WatchdogSec=60 >> NotifyAccess=all >> PIDFile=/usr/local/var/run/radiusd/radiusd.pid >> EnvironmentFile=-/etc/sysconfig/radiusd >> >> # FreeRADIUS can do static evaluation of policy language rules based >> # on environmental variables which is very useful for doing per-host >> # customization. >> # Unfortunately systemd does not allow variable substitutions such >> # as %H or $(hostname) in the EnvironmentFile. >> # We provide HOSTNAME here for convenience. >> Environment=HOSTNAME=%H >> >> # Limit memory to 2G this is fine for %99.99 of deployments. FreeRADIUS >> # is not memory hungry, if it's using more than this, then there's probably >> # a leak somewhere. >> MemoryLimit=2G >> >> RuntimeDirectory=radiusd >> RuntimeDirectoryMode=0775 >> ExecStartPre=/usr/local/sbin/radiusd $FREERADIUS_OPTIONS -Cx -lstdout >> ExecStartPre=-/bin/chown -R root /usr/local/var/run/radiusd >> ExecStart=/usr/local/sbin/radiusd $FREERADIUS_OPTIONS >> Restart=on-failure >> RestartSec=5 >> >> [Install] >> WantedBy=multi-user.target >> >> Can you tell me how to solve this problem? >> >> Thank you >> >> Giuseppe >> >> - >> List info/subscribe/unsubscribe? See >> http://www.freeradius.org/list/users.html > - > List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Giuseppe, That is the problem. you built the freeradius without the correct systemd support. please install the package systemd-devel, then rebuild again. therefore, check if you could see something like. $ strings /opt/freeradius/sbin/radiusd | grep READY=1 READY=1 $ On Thu, May 2, 2019 at 4:20 PM Giuseppe Russo < giuseppe.russo@mediacommunications.it> wrote: > Hello Jorge, > there is no output: > > [root@radius ~]# strings /usr/local/sbin/radiusd | grep "READY=1" > [root@radius ~]# > > > > > Il giorno 2 mag 2019, alle ore 21:11, Jorge Pereira < > jpereira@freeradius.org> ha scritto: > > > > Giuseppe, > > > > Please can you copy/paste the output of the command: > > > > strings /usr/local/sbin/radiusd | grep "READY=1" > > > > > > On Thu, May 2, 2019 at 3:10 PM Giuseppe Russo < > > giuseppe.russo@mediacommunications.it> wrote: > > > >> Hello, > >> I installed Freeradius 3.0.19 on centos 7. > >> Everything is working properly but if I start the service with systemctl > >> start radius the service remain in “activating” status: > >> > >> radiusd.service - FreeRADIUS multi-protocol policy server > >> Loaded: loaded (/usr/lib/systemd/system/radiusd.service; enabled; > >> vendor preset: disabled) > >> Active: activating (start) since Thu 2019-05-02 19:52:38 CEST; 31s ago > >> Docs: man:radiusd(8) > >> man:radiusd.conf(5) > >> http://wiki.freeradius.org/ > >> http://networkradius.com/doc/ > >> Process: 6786 ExecStartPre=/bin/chown -R root > /usr/local/var/run/radiusd > >> (code=exited, status=0/SUCCESS) > >> Process: 6784 ExecStartPre=/usr/local/sbin/radiusd $FREERADIUS_OPTIONS > >> -Cx -lstdout (code=exited, status=0/SUCCESS) > >> Main PID: 6792 (radiusd) > >> Memory: 8.5M (limit: 2.0G) > >> CGroup: /system.slice/radiusd.service > >> └─6792 /usr/local/sbin/radiusd > >> > >> > >> This is the content of the radiusd.service file: > >> > >> [Unit] > >> Description=FreeRADIUS multi-protocol policy server > >> After=network-online.target > >> Documentation=man:radiusd(8) man:radiusd.conf(5) > >> http://wiki.freeradius.org/ http://networkradius.com/doc/ > >> > >> [Service] > >> Type=notify > >> WatchdogSec=60 > >> NotifyAccess=all > >> PIDFile=/usr/local/var/run/radiusd/radiusd.pid > >> EnvironmentFile=-/etc/sysconfig/radiusd > >> > >> # FreeRADIUS can do static evaluation of policy language rules based > >> # on environmental variables which is very useful for doing per-host > >> # customization. > >> # Unfortunately systemd does not allow variable substitutions such > >> # as %H or $(hostname) in the EnvironmentFile. > >> # We provide HOSTNAME here for convenience. > >> Environment=HOSTNAME=%H > >> > >> # Limit memory to 2G this is fine for %99.99 of deployments. FreeRADIUS > >> # is not memory hungry, if it's using more than this, then there's > probably > >> # a leak somewhere. > >> MemoryLimit=2G > >> > >> RuntimeDirectory=radiusd > >> RuntimeDirectoryMode=0775 > >> ExecStartPre=/usr/local/sbin/radiusd $FREERADIUS_OPTIONS -Cx -lstdout > >> ExecStartPre=-/bin/chown -R root /usr/local/var/run/radiusd > >> ExecStart=/usr/local/sbin/radiusd $FREERADIUS_OPTIONS > >> Restart=on-failure > >> RestartSec=5 > >> > >> [Install] > >> WantedBy=multi-user.target > >> > >> Can you tell me how to solve this problem? > >> > >> Thank you > >> > >> Giuseppe > >> > >> - > >> List info/subscribe/unsubscribe? See > >> http://www.freeradius.org/list/users.html > > - > > List info/subscribe/unsubscribe? See > http://www.freeradius.org/list/users.html > > - > List info/subscribe/unsubscribe? See > http://www.freeradius.org/list/users.html
Thank you Jorge.
I did it and doesn’t work but now the status is “inactive” and not “activating”.
I resume all I did because I’m new in linux and freeradius and maybe I did something wrong.
In a new centos 7 server after update all with yum -y update and after install mysql 8.0:
1) yum -y install systemd-devel (as you said)
2) yum -y install libtalloc-devel libpcap-devel gcc net-snmp net-snmp-utils
3) I downloaded and installed freeradius
yum -y install git
git clone https://github.com/FreeRADIUS/freeradius-server.git
cd freeradius-server
git checkout release_3_0_19
./configure
make
make install
4) I tested it with radiusd -X and works
5) I created the file /usr/lib/systemd/system/radiusd.service (because the installation don’t install this file)and I copied this content in the file
[Unit]
Description=FreeRADIUS multi-protocol policy server
After=network-online.target
Documentation=man:radiusd(8) man:radiusd.conf(5) http://wiki.freeradius.org/ http://networkradius.com/doc/
[Service]
Type=notify
WatchdogSec=60
NotifyAccess=all
PIDFile=/var/run/radiusd/radiusd.pid
EnvironmentFile=-/etc/sysconfig/radiusd
# FreeRADIUS can do static evaluation of policy language rules based
# on environmental variables which is very useful for doing per-host
# customization.
# Unfortunately systemd does not allow variable substitutions such
# as %H or $(hostname) in the EnvironmentFile.
# We provide HOSTNAME here for convenience.
Environment=HOSTNAME=%H
# Limit memory to 2G this is fine for %99.99 of deployments. FreeRADIUS
# is not memory hungry, if it's using more than this, then there's probably
# a leak somewhere.
MemoryLimit=2G
RuntimeDirectory=radiusd
RuntimeDirectoryMode=0775
ExecStartPre=/usr/local/sbin/radiusd $FREERADIUS_OPTIONS -Cx -lstdout
ExecStartPre=/usr/bin/chown -R root /var/run/radiusd
ExecStart=/usr/local/sbin/radiusd $FREERADIUS_OPTIONS
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
6) I started the service and checked the status
[root@radiust3 ~]# systemctl start radiusd
[root@radiust3 ~]# systemctl enable radiusd
[root@radiust3 ~]# systemctl status radiusd
● radiusd.service - FreeRADIUS multi-protocol policy server
Loaded: loaded (/usr/lib/systemd/system/radiusd.service; enabled; vendor preset: disabled)
Active: inactive (dead) since Fri 2019-05-03 12:24:25 EDT; 1s ago
Docs: man:radiusd(8)
man:radiusd.conf(5)
http://wiki.freeradius.org/
http://networkradius.com/doc/
Main PID: 6534 (code=exited, status=0/SUCCESS)
May 03 12:24:25 radiust3 radiusd[6530]: tls: Using cached TLS configuration from previous invocation
May 03 12:24:25 radiust3 radiusd[6530]: tls: Using cached TLS configuration from previous invocation
May 03 12:24:25 radiust3 radiusd[6530]: rlm_cache (cache_eap): Driver rlm_cache_rbtree (module rlm_cache_rbtree) loaded and linked
May 03 12:24:25 radiust3 radiusd[6530]: rlm_detail (auth_log): 'User-Password' suppressed, will not appear in detail output
May 03 12:24:25 radiust3 radiusd[6530]: Ignoring "sql" (see raddb/mods-available/README.rst)
May 03 12:24:25 radiust3 radiusd[6530]: Ignoring "ldap" (see raddb/mods-available/README.rst)
May 03 12:24:25 radiust3 radiusd[6530]: # Skipping contents of 'if' as it is always 'false' -- /usr/local/etc/raddb/sites-enabled/inner-tunnel:336
May 03 12:24:25 radiust3 radiusd[6530]: radiusd: #### Skipping IP addresses and Ports ####
May 03 12:24:25 radiust3 radiusd[6530]: Configuration appears to be OK
May 03 12:24:25 radiust3 systemd[1]: Started FreeRADIUS multi-protocol policy server.
[root@radiust3 ~]#
7) And again I don’t have output from this command
[root@radiust3 ~]# strings /usr/local/sbin/radiusd | grep "READY=1"
[root@radiust3 ~]#
Where am I doing wrong?
Thank you
> Il giorno 2 mag 2019, alle ore 21:28, Jorge Pereira <jpereira@freeradius.org> ha scritto:
>
> Giuseppe,
>
> That is the problem. you built the freeradius without the correct systemd
> support.
>
> please install the package systemd-devel, then rebuild again. therefore,
> check if you could see something like.
>
> $ strings /opt/freeradius/sbin/radiusd | grep READY=1
> READY=1
> $
>
>
>
> On Thu, May 2, 2019 at 4:20 PM Giuseppe Russo <
> giuseppe.russo@mediacommunications.it> wrote:
>
>> Hello Jorge,
>> there is no output:
>>
>> [root@radius ~]# strings /usr/local/sbin/radiusd | grep "READY=1"
>> [root@radius ~]#
>>
>>
>>
>>> Il giorno 2 mag 2019, alle ore 21:11, Jorge Pereira <
>> jpereira@freeradius.org> ha scritto:
>>>
>>> Giuseppe,
>>>
>>> Please can you copy/paste the output of the command:
>>>
>>> strings /usr/local/sbin/radiusd | grep "READY=1"
>>>
>>>
>>> On Thu, May 2, 2019 at 3:10 PM Giuseppe Russo <
>>> giuseppe.russo@mediacommunications.it> wrote:
>>>
>>>> Hello,
>>>> I installed Freeradius 3.0.19 on centos 7.
>>>> Everything is working properly but if I start the service with systemctl
>>>> start radius the service remain in “activating” status:
>>>>
>>>> radiusd.service - FreeRADIUS multi-protocol policy server
>>>> Loaded: loaded (/usr/lib/systemd/system/radiusd.service; enabled;
>>>> vendor preset: disabled)
>>>> Active: activating (start) since Thu 2019-05-02 19:52:38 CEST; 31s ago
>>>> Docs: man:radiusd(8)
>>>> man:radiusd.conf(5)
>>>> http://wiki.freeradius.org/
>>>> http://networkradius.com/doc/
>>>> Process: 6786 ExecStartPre=/bin/chown -R root
>> /usr/local/var/run/radiusd
>>>> (code=exited, status=0/SUCCESS)
>>>> Process: 6784 ExecStartPre=/usr/local/sbin/radiusd $FREERADIUS_OPTIONS
>>>> -Cx -lstdout (code=exited, status=0/SUCCESS)
>>>> Main PID: 6792 (radiusd)
>>>> Memory: 8.5M (limit: 2.0G)
>>>> CGroup: /system.slice/radiusd.service
>>>> └─6792 /usr/local/sbin/radiusd
>>>>
>>>>
>>>> This is the content of the radiusd.service file:
>>>>
>>>> [Unit]
>>>> Description=FreeRADIUS multi-protocol policy server
>>>> After=network-online.target
>>>> Documentation=man:radiusd(8) man:radiusd.conf(5)
>>>> http://wiki.freeradius.org/ http://networkradius.com/doc/
>>>>
>>>> [Service]
>>>> Type=notify
>>>> WatchdogSec=60
>>>> NotifyAccess=all
>>>> PIDFile=/usr/local/var/run/radiusd/radiusd.pid
>>>> EnvironmentFile=-/etc/sysconfig/radiusd
>>>>
>>>> # FreeRADIUS can do static evaluation of policy language rules based
>>>> # on environmental variables which is very useful for doing per-host
>>>> # customization.
>>>> # Unfortunately systemd does not allow variable substitutions such
>>>> # as %H or $(hostname) in the EnvironmentFile.
>>>> # We provide HOSTNAME here for convenience.
>>>> Environment=HOSTNAME=%H
>>>>
>>>> # Limit memory to 2G this is fine for %99.99 of deployments. FreeRADIUS
>>>> # is not memory hungry, if it's using more than this, then there's
>> probably
>>>> # a leak somewhere.
>>>> MemoryLimit=2G
>>>>
>>>> RuntimeDirectory=radiusd
>>>> RuntimeDirectoryMode=0775
>>>> ExecStartPre=/usr/local/sbin/radiusd $FREERADIUS_OPTIONS -Cx -lstdout
>>>> ExecStartPre=-/bin/chown -R root /usr/local/var/run/radiusd
>>>> ExecStart=/usr/local/sbin/radiusd $FREERADIUS_OPTIONS
>>>> Restart=on-failure
>>>> RestartSec=5
>>>>
>>>> [Install]
>>>> WantedBy=multi-user.target
>>>>
>>>> Can you tell me how to solve this problem?
>>>>
>>>> Thank you
>>>>
>>>> Giuseppe
>>>>
>>>> -
>>>> List info/subscribe/unsubscribe? See
>>>> http://www.freeradius.org/list/users.html
>>> -
>>> List info/subscribe/unsubscribe? See
>> http://www.freeradius.org/list/users.html
>>
>> -
>> List info/subscribe/unsubscribe? See
>> http://www.freeradius.org/list/users.html
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Giussepi, I encourage you to use the prebuilt packages available in https://networkradius.com/freeradius-packages/ On Fri, May 3, 2019 at 1:32 PM Giuseppe Russo < giuseppe.russo@mediacommunications.it> wrote: > Thank you Jorge. > I did it and doesn’t work but now the status is “inactive” and not > “activating”. > > I resume all I did because I’m new in linux and freeradius and maybe I did > something wrong. > > In a new centos 7 server after update all with yum -y update and after > install mysql 8.0: > > 1) yum -y install systemd-devel (as you said) > > 2) yum -y install libtalloc-devel libpcap-devel gcc net-snmp net-snmp-utils > > 3) I downloaded and installed freeradius > > yum -y install git > git clone https://github.com/FreeRADIUS/freeradius-server.git > cd freeradius-server > git checkout release_3_0_19 > > ./configure > make > make install > > > 4) I tested it with radiusd -X and works > > 5) I created the file /usr/lib/systemd/system/radiusd.service (because the > installation don’t install this file)and I copied this content in the file > > [Unit] > Description=FreeRADIUS multi-protocol policy server > After=network-online.target > Documentation=man:radiusd(8) man:radiusd.conf(5) > http://wiki.freeradius.org/ http://networkradius.com/doc/ > > [Service] > Type=notify > WatchdogSec=60 > NotifyAccess=all > PIDFile=/var/run/radiusd/radiusd.pid > EnvironmentFile=-/etc/sysconfig/radiusd > > # FreeRADIUS can do static evaluation of policy language rules based > # on environmental variables which is very useful for doing per-host > # customization. > # Unfortunately systemd does not allow variable substitutions such > # as %H or $(hostname) in the EnvironmentFile. > # We provide HOSTNAME here for convenience. > Environment=HOSTNAME=%H > > # Limit memory to 2G this is fine for %99.99 of deployments. FreeRADIUS > # is not memory hungry, if it's using more than this, then there's probably > # a leak somewhere. > MemoryLimit=2G > > RuntimeDirectory=radiusd > RuntimeDirectoryMode=0775 > ExecStartPre=/usr/local/sbin/radiusd $FREERADIUS_OPTIONS -Cx -lstdout > ExecStartPre=/usr/bin/chown -R root /var/run/radiusd > ExecStart=/usr/local/sbin/radiusd $FREERADIUS_OPTIONS > Restart=on-failure > RestartSec=5 > > [Install] > WantedBy=multi-user.target > > 6) I started the service and checked the status > > [root@radiust3 ~]# systemctl start radiusd > [root@radiust3 ~]# systemctl enable radiusd > [root@radiust3 ~]# systemctl status radiusd > ● radiusd.service - FreeRADIUS multi-protocol policy server > Loaded: loaded (/usr/lib/systemd/system/radiusd.service; enabled; > vendor preset: disabled) > Active: inactive (dead) since Fri 2019-05-03 12:24:25 EDT; 1s ago > Docs: man:radiusd(8) > man:radiusd.conf(5) > http://wiki.freeradius.org/ > http://networkradius.com/doc/ > Main PID: 6534 (code=exited, status=0/SUCCESS) > > May 03 12:24:25 radiust3 radiusd[6530]: tls: Using cached TLS > configuration from previous invocation > May 03 12:24:25 radiust3 radiusd[6530]: tls: Using cached TLS > configuration from previous invocation > May 03 12:24:25 radiust3 radiusd[6530]: rlm_cache (cache_eap): Driver > rlm_cache_rbtree (module rlm_cache_rbtree) loaded and linked > May 03 12:24:25 radiust3 radiusd[6530]: rlm_detail (auth_log): > 'User-Password' suppressed, will not appear in detail output > May 03 12:24:25 radiust3 radiusd[6530]: Ignoring "sql" (see > raddb/mods-available/README.rst) > May 03 12:24:25 radiust3 radiusd[6530]: Ignoring "ldap" (see > raddb/mods-available/README.rst) > May 03 12:24:25 radiust3 radiusd[6530]: # Skipping contents of 'if' as it > is always 'false' -- /usr/local/etc/raddb/sites-enabled/inner-tunnel:336 > May 03 12:24:25 radiust3 radiusd[6530]: radiusd: #### Skipping IP > addresses and Ports #### > May 03 12:24:25 radiust3 radiusd[6530]: Configuration appears to be OK > May 03 12:24:25 radiust3 systemd[1]: Started FreeRADIUS multi-protocol > policy server. > [root@radiust3 ~]# > > > 7) And again I don’t have output from this command > > [root@radiust3 ~]# strings /usr/local/sbin/radiusd | grep "READY=1" > [root@radiust3 ~]# > > > Where am I doing wrong? > > Thank you > > > > > > Il giorno 2 mag 2019, alle ore 21:28, Jorge Pereira < > jpereira@freeradius.org> ha scritto: > > > > Giuseppe, > > > > That is the problem. you built the freeradius without the correct systemd > > support. > > > > please install the package systemd-devel, then rebuild again. therefore, > > check if you could see something like. > > > > $ strings /opt/freeradius/sbin/radiusd | grep READY=1 > > READY=1 > > $ > > > > > > > > On Thu, May 2, 2019 at 4:20 PM Giuseppe Russo < > > giuseppe.russo@mediacommunications.it> wrote: > > > >> Hello Jorge, > >> there is no output: > >> > >> [root@radius ~]# strings /usr/local/sbin/radiusd | grep "READY=1" > >> [root@radius ~]# > >> > >> > >> > >>> Il giorno 2 mag 2019, alle ore 21:11, Jorge Pereira < > >> jpereira@freeradius.org> ha scritto: > >>> > >>> Giuseppe, > >>> > >>> Please can you copy/paste the output of the command: > >>> > >>> strings /usr/local/sbin/radiusd | grep "READY=1" > >>> > >>> > >>> On Thu, May 2, 2019 at 3:10 PM Giuseppe Russo < > >>> giuseppe.russo@mediacommunications.it> wrote: > >>> > >>>> Hello, > >>>> I installed Freeradius 3.0.19 on centos 7. > >>>> Everything is working properly but if I start the service with > systemctl > >>>> start radius the service remain in “activating” status: > >>>> > >>>> radiusd.service - FreeRADIUS multi-protocol policy server > >>>> Loaded: loaded (/usr/lib/systemd/system/radiusd.service; enabled; > >>>> vendor preset: disabled) > >>>> Active: activating (start) since Thu 2019-05-02 19:52:38 CEST; 31s > ago > >>>> Docs: man:radiusd(8) > >>>> man:radiusd.conf(5) > >>>> http://wiki.freeradius.org/ > >>>> http://networkradius.com/doc/ > >>>> Process: 6786 ExecStartPre=/bin/chown -R root > >> /usr/local/var/run/radiusd > >>>> (code=exited, status=0/SUCCESS) > >>>> Process: 6784 ExecStartPre=/usr/local/sbin/radiusd $FREERADIUS_OPTIONS > >>>> -Cx -lstdout (code=exited, status=0/SUCCESS) > >>>> Main PID: 6792 (radiusd) > >>>> Memory: 8.5M (limit: 2.0G) > >>>> CGroup: /system.slice/radiusd.service > >>>> └─6792 /usr/local/sbin/radiusd > >>>> > >>>> > >>>> This is the content of the radiusd.service file: > >>>> > >>>> [Unit] > >>>> Description=FreeRADIUS multi-protocol policy server > >>>> After=network-online.target > >>>> Documentation=man:radiusd(8) man:radiusd.conf(5) > >>>> http://wiki.freeradius.org/ http://networkradius.com/doc/ > >>>> > >>>> [Service] > >>>> Type=notify > >>>> WatchdogSec=60 > >>>> NotifyAccess=all > >>>> PIDFile=/usr/local/var/run/radiusd/radiusd.pid > >>>> EnvironmentFile=-/etc/sysconfig/radiusd > >>>> > >>>> # FreeRADIUS can do static evaluation of policy language rules based > >>>> # on environmental variables which is very useful for doing per-host > >>>> # customization. > >>>> # Unfortunately systemd does not allow variable substitutions such > >>>> # as %H or $(hostname) in the EnvironmentFile. > >>>> # We provide HOSTNAME here for convenience. > >>>> Environment=HOSTNAME=%H > >>>> > >>>> # Limit memory to 2G this is fine for %99.99 of deployments. > FreeRADIUS > >>>> # is not memory hungry, if it's using more than this, then there's > >> probably > >>>> # a leak somewhere. > >>>> MemoryLimit=2G > >>>> > >>>> RuntimeDirectory=radiusd > >>>> RuntimeDirectoryMode=0775 > >>>> ExecStartPre=/usr/local/sbin/radiusd $FREERADIUS_OPTIONS -Cx -lstdout > >>>> ExecStartPre=-/bin/chown -R root /usr/local/var/run/radiusd > >>>> ExecStart=/usr/local/sbin/radiusd $FREERADIUS_OPTIONS > >>>> Restart=on-failure > >>>> RestartSec=5 > >>>> > >>>> [Install] > >>>> WantedBy=multi-user.target > >>>> > >>>> Can you tell me how to solve this problem? > >>>> > >>>> Thank you > >>>> > >>>> Giuseppe > >>>> > >>>> - > >>>> List info/subscribe/unsubscribe? See > >>>> http://www.freeradius.org/list/users.html > >>> - > >>> List info/subscribe/unsubscribe? See > >> http://www.freeradius.org/list/users.html > >> > >> - > >> List info/subscribe/unsubscribe? See > >> http://www.freeradius.org/list/users.html > > - > > List info/subscribe/unsubscribe? See > http://www.freeradius.org/list/users.html > > - > List info/subscribe/unsubscribe? See > http://www.freeradius.org/list/users.html
We had the same problem on CentOS 7; it has problems starting radiusd with systemd. The solution was to disable the systemd start-up script, and create a legacy init.d start-up script. Just include in that file 'SYSTEMCTL_SKIP_REDIRECT="true"', so it doesn't try to use the systemd functions. That solved it for us. Cheers, Jim On 5/2/19 2:06 PM, Giuseppe Russo wrote:
Hello, I installed Freeradius 3.0.19 on centos 7. Everything is working properly but if I start the service with systemctl start radius the service remain in “activating” status:
radiusd.service - FreeRADIUS multi-protocol policy server Loaded: loaded (/usr/lib/systemd/system/radiusd.service; enabled; vendor preset: disabled) Active: activating (start) since Thu 2019-05-02 19:52:38 CEST; 31s ago Docs: man:radiusd(8) man:radiusd.conf(5) http://wiki.freeradius.org/ http://networkradius.com/doc/ Process: 6786 ExecStartPre=/bin/chown -R root /usr/local/var/run/radiusd (code=exited, status=0/SUCCESS) Process: 6784 ExecStartPre=/usr/local/sbin/radiusd $FREERADIUS_OPTIONS -Cx -lstdout (code=exited, status=0/SUCCESS) Main PID: 6792 (radiusd) Memory: 8.5M (limit: 2.0G) CGroup: /system.slice/radiusd.service └─6792 /usr/local/sbin/radiusd
This is the content of the radiusd.service file:
[Unit] Description=FreeRADIUS multi-protocol policy server After=network-online.target Documentation=man:radiusd(8) man:radiusd.conf(5) http://wiki.freeradius.org/ http://networkradius.com/doc/
[Service] Type=notify WatchdogSec=60 NotifyAccess=all PIDFile=/usr/local/var/run/radiusd/radiusd.pid EnvironmentFile=-/etc/sysconfig/radiusd
# FreeRADIUS can do static evaluation of policy language rules based # on environmental variables which is very useful for doing per-host # customization. # Unfortunately systemd does not allow variable substitutions such # as %H or $(hostname) in the EnvironmentFile. # We provide HOSTNAME here for convenience. Environment=HOSTNAME=%H
# Limit memory to 2G this is fine for %99.99 of deployments. FreeRADIUS # is not memory hungry, if it's using more than this, then there's probably # a leak somewhere. MemoryLimit=2G
RuntimeDirectory=radiusd RuntimeDirectoryMode=0775 ExecStartPre=/usr/local/sbin/radiusd $FREERADIUS_OPTIONS -Cx -lstdout ExecStartPre=-/bin/chown -R root /usr/local/var/run/radiusd ExecStart=/usr/local/sbin/radiusd $FREERADIUS_OPTIONS Restart=on-failure RestartSec=5
[Install] WantedBy=multi-user.target
Can you tell me how to solve this problem?
Thank you
Giuseppe
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
J Kephart, The Giuseppe issue is related to build the FreeRADUS without the proper dependencies expected to enable the systemd.therefore, I still encourage you to use the prebuilt packages available in https://networkradius.com/freeradius-packages/ On Wed, May 8, 2019 at 11:45 AM J Kephart <jkephart@safetynetaccess.com> wrote:
We had the same problem on CentOS 7; it has problems starting radiusd with systemd. The solution was to disable the systemd start-up script, and create a legacy init.d start-up script. Just include in that file 'SYSTEMCTL_SKIP_REDIRECT="true"', so it doesn't try to use the systemd functions. That solved it for us.
Cheers,
Jim
On 5/2/19 2:06 PM, Giuseppe Russo wrote:
Hello, I installed Freeradius 3.0.19 on centos 7. Everything is working properly but if I start the service with systemctl start radius the service remain in “activating” status:
radiusd.service - FreeRADIUS multi-protocol policy server Loaded: loaded (/usr/lib/systemd/system/radiusd.service; enabled; vendor preset: disabled) Active: activating (start) since Thu 2019-05-02 19:52:38 CEST; 31s ago Docs: man:radiusd(8) man:radiusd.conf(5) http://wiki.freeradius.org/ http://networkradius.com/doc/ Process: 6786 ExecStartPre=/bin/chown -R root /usr/local/var/run/radiusd (code=exited, status=0/SUCCESS) Process: 6784 ExecStartPre=/usr/local/sbin/radiusd $FREERADIUS_OPTIONS -Cx -lstdout (code=exited, status=0/SUCCESS) Main PID: 6792 (radiusd) Memory: 8.5M (limit: 2.0G) CGroup: /system.slice/radiusd.service └─6792 /usr/local/sbin/radiusd
This is the content of the radiusd.service file:
[Unit] Description=FreeRADIUS multi-protocol policy server After=network-online.target Documentation=man:radiusd(8) man:radiusd.conf(5) http://wiki.freeradius.org/ http://networkradius.com/doc/
[Service] Type=notify WatchdogSec=60 NotifyAccess=all PIDFile=/usr/local/var/run/radiusd/radiusd.pid EnvironmentFile=-/etc/sysconfig/radiusd
# FreeRADIUS can do static evaluation of policy language rules based # on environmental variables which is very useful for doing per-host # customization. # Unfortunately systemd does not allow variable substitutions such # as %H or $(hostname) in the EnvironmentFile. # We provide HOSTNAME here for convenience. Environment=HOSTNAME=%H
# Limit memory to 2G this is fine for %99.99 of deployments. FreeRADIUS # is not memory hungry, if it's using more than this, then there's probably # a leak somewhere. MemoryLimit=2G
RuntimeDirectory=radiusd RuntimeDirectoryMode=0775 ExecStartPre=/usr/local/sbin/radiusd $FREERADIUS_OPTIONS -Cx -lstdout ExecStartPre=-/bin/chown -R root /usr/local/var/run/radiusd ExecStart=/usr/local/sbin/radiusd $FREERADIUS_OPTIONS Restart=on-failure RestartSec=5
[Install] WantedBy=multi-user.target
Can you tell me how to solve this problem?
Thank you
Giuseppe
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
participants (3)
-
Giuseppe Russo -
J Kephart -
Jorge Pereira