summaryrefslogtreecommitdiff
path: root/community/inn
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-12-23 23:14:44 +0000
committerroot <root@rshg054.dnsready.net>2011-12-23 23:14:44 +0000
commitd53a615fd6ab6dfeb42da11086f96698cb08fe40 (patch)
treee8b4ecb6de34cedcb486150a721025bf303f66da /community/inn
parent34e6c976d28892a7bd3f7578f10fcfa57865472f (diff)
Fri Dec 23 23:14:44 UTC 2011
Diffstat (limited to 'community/inn')
-rw-r--r--community/inn/PKGBUILD4
-rw-r--r--community/inn/innd.rc8
2 files changed, 9 insertions, 3 deletions
diff --git a/community/inn/PKGBUILD b/community/inn/PKGBUILD
index 044531434..ea35329d1 100644
--- a/community/inn/PKGBUILD
+++ b/community/inn/PKGBUILD
@@ -5,7 +5,7 @@
pkgname=inn
pkgver=2.5.2
-pkgrel=6
+pkgrel=8
pkgdesc="Complete open source Usenet system. De facto standard for handling news routing, news spool and serving the spool to customers."
url="http://www.isc.org/software/inn/"
arch=('i686' 'x86_64')
@@ -53,7 +53,7 @@ source=(http://ftp.isc.org/isc/inn/inn-$pkgver.tar.gz
nnrpd.conf
site.make.patch)
md5sums=('a6e577dceb90d07501b96149508b974b'
- '2ad5138dac7c7535278f73f30020d656'
+ 'a243d9498568f1beee20da5684b5fbfc'
'a0b1ff8501ac8a31ce81a2f9c9b4bac9'
'fbf1d2c5b3c5a08ae3e515c71c2e2e4a'
'bb4bbe86ae52fbbf08b0f6f370dea052'
diff --git a/community/inn/innd.rc b/community/inn/innd.rc
index e88bd0c39..5e36aec0d 100644
--- a/community/inn/innd.rc
+++ b/community/inn/innd.rc
@@ -4,11 +4,15 @@
. /etc/rc.d/functions
[ -f /etc/conf.d/innd ] && . /etc/conf.d/innd
[ -z "$NEWS_USER" ] && print "Please set news username" && exit 1;
+[ -z "$NEWS_GROUP" ] && print "Please set news groupname" && exit 1;
case "$1" in
start)
stat_busy "Starting InterNetNews"
- [ -d /var/run/inn ] || mkdir -p /var/run/inn
+ [ -d /var/run/inn ] || {
+ mkdir -p /var/run/inn
+ chown -R $NEWS_USER:$NEWS_GROUP /var/run/inn
+ }
su $NEWS_USER -c /usr/bin/rc.news 2>&- >&-
if [ $? -gt 0 ]; then
stat_fail
@@ -21,10 +25,12 @@ case "$1" in
;;
stop)
stat_busy "Stopping InterNetNews"
+ ctlinnd throttle "shutting down" 2>&- >&-
su $NEWS_USER -c /usr/bin/rc.news stop 2>&- >&-
if [ $? -gt 0 ]; then
stat_fail
else
+ kill `ps faxu| grep ^$NEWS_USER | awk -- '{print $2}'` 2>&- >&-
rm /var/run/innd.pid
rm_daemon innd
stat_done