summaryrefslogtreecommitdiffstats
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
parent33d01fcd8668db39f4c24c97680b7d9ce7a1992a (diff)
downloadaports-971167ec1e6b2d5ddbae5de73805b47176c40fad.tar.bz2
aports-971167ec1e6b2d5ddbae5de73805b47176c40fad.tar.xz
main/freeradius: fix pid dir location
-rw-r--r--main/freeradius/APKBUILD4
-rw-r--r--main/freeradius/freeradius.initd10
2 files changed, 7 insertions, 7 deletions
diff --git a/main/freeradius/APKBUILD b/main/freeradius/APKBUILD
index f5cee1245..021dba00e 100644
--- a/main/freeradius/APKBUILD
+++ b/main/freeradius/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=freeradius
pkgver=2.2.0
-pkgrel=2
+pkgrel=3
pkgdesc="RADIUS (Remote Authentication Dial-In User Service) server"
url="http://freeradius.org/"
arch="all"
@@ -174,4 +174,4 @@ pam() {
}
md5sums="2e45d3c0d22ab14c560c7c3029893a8a freeradius-server-2.2.0.tar.gz
fc6693f3df5a0694610110287a28568a freeradius.confd
-c46f34d7ddf695dfe53e5fb7f60afa59 freeradius.initd"
+1b89dada64d0de560d79f1e048626759 freeradius.initd"
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 $?
}