summaryrefslogtreecommitdiff
path: root/net-dialup/cistronradius/files/cistronradius.rc
diff options
context:
space:
mode:
Diffstat (limited to 'net-dialup/cistronradius/files/cistronradius.rc')
-rw-r--r--net-dialup/cistronradius/files/cistronradius.rc34
1 files changed, 0 insertions, 34 deletions
diff --git a/net-dialup/cistronradius/files/cistronradius.rc b/net-dialup/cistronradius/files/cistronradius.rc
deleted file mode 100644
index 9155ee59b6a5..000000000000
--- a/net-dialup/cistronradius/files/cistronradius.rc
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-depend() {
- need net
-}
-
-checkconfig() {
- if [ ! -x /usr/sbin/radiusd ] ; then
- eerror "The radius daemon was not found."
- eerror "Please (re)emerge cistronradius."
- return 1
- fi
-
- if [ ! -e /etc/raddb/clients ] ; then
- eerror "No /etc/raddb/clients file found."
- eerror "Please create the file and retry."
- return 1
- fi
-}
-
-start() {
- checkconfig || return 1
- ebegin "Starting Cistron Radius"
- start-stop-daemon --start --quiet --exec /usr/sbin/radiusd
- eend $?
-}
-
-stop() {
- ebegin "Stopping Cistron Radius"
- start-stop-daemon --stop --quiet --pidfile /var/run/radiusd.pid
- eend $?
-}