Sample Header Ad - 728x90

Freeradius (radiusd) service can't start on boot but can start manually

1 vote
1 answer
3074 views
I managed to setup freeradius server on Centos 7 using compiled source at ftp://ftp.freeradius.org/pub/freeradius/freeradius-server-3.0.18.tar.gz Everything works perfectly fine except, the service can't run every time after reboot. I have to issue command... sudo systemctl start radiusd The service run successfully. Below are the logs ● radiusd.service - FreeRADIUS config by ME. Loaded: loaded (/usr/lib/systemd/system/radiusd.service; enabled; vendor preset: disabled) Active: active (running) since Sat 2022-01-22 00:10:50 +08; 7s ago Process: 2036 ExecStart=/opt/freeradius/sbin/radiusd -d /opt/freeradius/etc/raddb (code=exited, status=0/SUCCESS) Process: 2028 ExecStartPre=/opt/freeradius/sbin/radiusd (code=exited, status=0/SUCCESS) Process: 2023 ExecStartPre=/opt/freeradius/sbin/radiusd -C (code=exited, status=0/SUCCESS) Process: 2020 ExecStartPre=/bin/chown -R radiusd.radiusd /var/run/radiusd (code=exited, status=0/SUCCESS) Main PID: 2039 (radiusd) CGroup: /system.slice/radiusd.service └─2039 /opt/freeradius/sbin/radiusd -d /opt/freeradius/etc/raddb Here is my systemd content for radiusd.service [Unit] Description=FreeRADIUS config by ME. After=syslog.target network.target ipa.service dirsrv.target krb5kdc.service smb.service nmb.service [Service] Type=forking #PIDFile=/var/run/radiusd/radiusd.pid ExecStartPre=-/bin/chown -R radiusd.radiusd /var/run/radiusd ExecStartPre=/opt/freeradius/sbin/radiusd -C ExecStart=/opt/freeradius/sbin/radiusd -d /opt/freeradius/etc/raddb ExecReload=/opt/freeradius/sbin/radiusd ExecReload=/bin/kill -HUP $MAINPID [Install] WantedBy=multi-user.target This is system log after the reboot ● radiusd.service - FreeRADIUS config by ME. Loaded: loaded (/usr/lib/systemd/system/radiusd.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Sat 2022-01-22 00:32:31 +08; 48s ago Process: 1320 ExecStartPre=/opt/freeradius/sbin/radiusd -C (code=exited, status=1/FAILURE) Process: 1284 ExecStartPre=/bin/chown -R radiusd.radiusd /var/run/radiusd (code=exited, status=0/SUCCESS) Jan 22 00:32:22 myhost systemd: Starting FreeRADIUS config by ME.... Jan 22 00:32:31 myhost systemd: radiusd.service: control process exited, code=exited status=1 Jan 22 00:32:31 myhost systemd: Failed to start FreeRADIUS config by ME.. Jan 22 00:32:31 myhost systemd: Unit radiusd.service entered failed state. Jan 22 00:32:31 myhost systemd: radiusd.service failed. I just don't know where else to look because this is the only log that i found.
Asked by luca ditrimma (111 rep)
Jan 22, 2022, 12:45 AM
Last activity: Jun 19, 2025, 08:03 PM