1[Unit]
2Description=FreeRADIUS high performance RADIUS server.
3After=syslog.target network.target
4
5[Service]
6Type=forking
7PIDFile=@STATEDIR@/run/radiusd/radiusd.pid
8ExecStartPre=-@BASE_BINDIR@/chown -R radiusd.radiusd @STATEDIR@/run/radiusd
9ExecStartPre=-@BASE_BINDIR@/sh -c "if [ ! -f @SYSCONFDIR@/raddb/certs/server.pem ]; then sudo -u radiusd @SYSCONFDIR@/raddb/certs/bootstrap; fi"
10ExecStartPre=@SBINDIR@/radiusd -C
11ExecStart=@SBINDIR@/radiusd -d @SYSCONFDIR@/raddb
12ExecReload=@SBINDIR@/radiusd -C
13ExecReload=@BASE_BINDIR@/kill -HUP $MAINPID
14
15[Install]
16WantedBy=multi-user.target
17