aboutsummaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-connectivity/freeradius/files/radiusd.service
diff options
context:
space:
mode:
authorJackie Huang <jackie.huang@windriver.com>2017-05-10 11:09:55 +0800
committerJoe MacDonald <joe_macdonald@mentor.com>2017-06-28 10:23:38 -0400
commit39e58a887b5f358c04152233bc63f440fc0be502 (patch)
treed484246f20f4b75561fe6f5af78877aaed47addb /meta-networking/recipes-connectivity/freeradius/files/radiusd.service
parent200f0ee67ada0c74df31ce9112a58144db7933d9 (diff)
downloadmeta-openembedded-39e58a887b5f358c04152233bc63f440fc0be502.tar.gz
meta-openembedded-39e58a887b5f358c04152233bc63f440fc0be502.tar.bz2
meta-openembedded-39e58a887b5f358c04152233bc63f440fc0be502.zip
freeradius: add new recipe
FreeRADIUS is an Internet authentication daemon, which implements the RADIUS protocol, as defined in RFC 2865 (and others). Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
Diffstat (limited to 'meta-networking/recipes-connectivity/freeradius/files/radiusd.service')
-rw-r--r--meta-networking/recipes-connectivity/freeradius/files/radiusd.service16
1 files changed, 16 insertions, 0 deletions
diff --git a/meta-networking/recipes-connectivity/freeradius/files/radiusd.service b/meta-networking/recipes-connectivity/freeradius/files/radiusd.service
new file mode 100644
index 000000000..899c4e495
--- /dev/null
+++ b/meta-networking/recipes-connectivity/freeradius/files/radiusd.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=FreeRADIUS high performance RADIUS server.
+After=syslog.target network.target
+
+[Service]
+Type=forking
+PIDFile=@STATEDIR@/run/radiusd/radiusd.pid
+ExecStartPre=-@BASE_BINDIR@/chown -R radiusd.radiusd @STATEDIR@/run/radiusd
+ExecStartPre=-@BASE_BINDIR@/sh -c "if [ ! -f @SYSCONFDIR@/raddb/certs/server.pem ]; then sudo -u radiusd @SYSCONFDIR@/raddb/certs/bootstrap; fi"
+ExecStartPre=@SBINDIR@/radiusd -C
+ExecStart=@SBINDIR@/radiusd -d @SYSCONFDIR@/raddb
+ExecReload=@SBINDIR@/radiusd -C
+ExecReload=@BASE_BINDIR@/kill -HUP $MAINPID
+
+[Install]
+WantedBy=multi-user.target