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