]> git.ipfire.org Git - people/ms/ipfire-3.x.git/commitdiff
Freeradius: Add upstart job file
authorStefan Schantl <Stevee@ipfire.org>
Thu, 17 Sep 2009 12:42:28 +0000 (14:42 +0200)
committerStefan Schantl <Stevee@ipfire.org>
Thu, 17 Sep 2009 12:42:28 +0000 (14:42 +0200)
lfs/freeradius
src/initscripts/extras/freeradius.conf [new file with mode: 0644]

index 2b4c58b7bf5fdd301c2a5ac75444a45021933ec7..e5530195535ab0f5ce6d4a9ed3157d4dfad35362 100644 (file)
@@ -117,5 +117,8 @@ $(OBJECT): $(objects)
        # Logrotate
        cp -vf $(DIR_SRC)/src/logrotate/$(PKG_NAME) /etc/logrotate.d/
 
+       # Initscript
+       cp -vf $(DIR_SRC)/src/initscripts/extras/freeradius.conf /etc/init/
+
        @rm -rf $(DIR_APP)
        @$(POSTBUILD)
diff --git a/src/initscripts/extras/freeradius.conf b/src/initscripts/extras/freeradius.conf
new file mode 100644 (file)
index 0000000..3e165f9
--- /dev/null
@@ -0,0 +1,13 @@
+description            "Starts the free RADIUS server"
+author                 "IPFire Team"
+
+start on started network
+stop on starting shutdown
+
+exec /usr/sbin/radiusd
+expect daemon
+respawn
+
+post-stop script
+       rm -vf /var/run/radiusd/radiusd.sock
+end script