summaryrefslogtreecommitdiff
path: root/community/freeradius/freeradius.service
diff options
context:
space:
mode:
Diffstat (limited to 'community/freeradius/freeradius.service')
-rw-r--r--community/freeradius/freeradius.service15
1 files changed, 15 insertions, 0 deletions
diff --git a/community/freeradius/freeradius.service b/community/freeradius/freeradius.service
new file mode 100644
index 000000000..220d352af
--- /dev/null
+++ b/community/freeradius/freeradius.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=FreeRADIUS high performance RADIUS server.
+After=syslog.target network.target
+
+[Service]
+Type=forking
+PIDFile=/run/radiusd/radiusd.pid
+ExecStartPre=-/bin/chown -R radiusd.radiusd /run/radiusd
+ExecStartPre=/usr/bin/radiusd -C
+ExecStart=/usr/bin/radiusd -d /etc/raddb
+ExecReload=/usr/bin/radiusd -C
+ExecReload=/bin/kill -HUP $MAINPID
+
+[Install]
+WantedBy=multi-user.target