summaryrefslogtreecommitdiffstats
path: root/main/freeradius/freeradius.initd
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2012-11-02 12:53:26 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2012-11-02 12:53:26 +0000
commit971167ec1e6b2d5ddbae5de73805b47176c40fad (patch)
tree19e48f76f33b77369e91f6a952e270394037e952 /main/freeradius/freeradius.initd
parent33d01fcd8668db39f4c24c97680b7d9ce7a1992a (diff)
downloadaports-971167ec1e6b2d5ddbae5de73805b47176c40fad.tar.bz2
aports-971167ec1e6b2d5ddbae5de73805b47176c40fad.tar.xz
main/freeradius: fix pid dir location
Diffstat (limited to 'main/freeradius/freeradius.initd')
-rw-r--r--main/freeradius/freeradius.initd10
1 files changed, 5 insertions, 5 deletions
diff --git a/main/freeradius/freeradius.initd b/main/freeradius/freeradius.initd
index fe4471517..66f748f4b 100644
--- a/main/freeradius/freeradius.initd
+++ b/main/freeradius/freeradius.initd
@@ -15,8 +15,8 @@ checkconfig() {
return 1
fi
- if [ ! -d /var/run/radiusd ] && ! mkdir /var/run/radiusd ; then
- eerror "Failed to create /var/run/radiusd"
+ if [ ! -d /var/run/radius ] && ! mkdir /var/run/radius ; then
+ eerror "Failed to create /var/run/radius"
return 1
fi
@@ -45,7 +45,7 @@ checkconfig() {
[ -f radius.log ] || touch radius.log || return 1
chown -R "${RADIUSD_USER:-root}:${RADIUSD_GROUP:-root}" . /var/run/radiusd && \
- chmod -R u+rwX,g+rX . /var/run/radiusd || return 1
+ chmod -R u+rwX,g+rX . /var/run/radius || return 1
}
start() {
@@ -58,13 +58,13 @@ start() {
stop () {
ebegin "Stopping radiusd"
- start-stop-daemon --stop --quiet --pidfile /var/run/radiusd/radiusd.pid
+ start-stop-daemon --stop --quiet --pidfile /var/run/radius/radiusd.pid
eend $?
}
reload () {
ebegin "Reloading radiusd"
- kill -HUP `</var/run/radiusd/radiusd.pid`
+ kill -HUP `</var/run/radius/radiusd.pid`
eend $?
}