summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Longinotti <chtekk@gentoo.org>2007-04-07 01:08:00 +0000
committerLuca Longinotti <chtekk@gentoo.org>2007-04-07 01:08:00 +0000
commit868af786875f84229c3c5095ad3510d9571a9691 (patch)
tree09356c88ff5a8495bf9ad7ea4d9b4670b15932d6 /net-mail/courier-imap/files/courier-imap-4.0.6-r1-courier-imapd.rc6
parentMarked 1.1 stable, 2.1 ~hppa (bug #173401). (diff)
downloadhistorical-868af786875f84229c3c5095ad3510d9571a9691.tar.gz
historical-868af786875f84229c3c5095ad3510d9571a9691.tar.bz2
historical-868af786875f84229c3c5095ad3510d9571a9691.zip
General cleanup. Fix bugs. See ChangeLog for details.
Package-Manager: portage-2.1.2.3
Diffstat (limited to 'net-mail/courier-imap/files/courier-imap-4.0.6-r1-courier-imapd.rc6')
-rw-r--r--net-mail/courier-imap/files/courier-imap-4.0.6-r1-courier-imapd.rc613
1 files changed, 6 insertions, 7 deletions
diff --git a/net-mail/courier-imap/files/courier-imap-4.0.6-r1-courier-imapd.rc6 b/net-mail/courier-imap/files/courier-imap-4.0.6-r1-courier-imapd.rc6
index ed5dab557940..f5433f2af6ca 100644
--- a/net-mail/courier-imap/files/courier-imap-4.0.6-r1-courier-imapd.rc6
+++ b/net-mail/courier-imap/files/courier-imap-4.0.6-r1-courier-imapd.rc6
@@ -1,7 +1,7 @@
#!/sbin/runscript
-# Copyright 1999-2004 Gentoo Foundation
+# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-mail/courier-imap/files/courier-imap-4.0.6-r1-courier-imapd.rc6,v 1.1 2007/02/03 01:20:24 blubb Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-mail/courier-imap/files/courier-imap-4.0.6-r1-courier-imapd.rc6,v 1.2 2007/04/07 01:08:00 chtekk Exp $
depend() {
need net courier-authlib
@@ -11,13 +11,13 @@ depend() {
source /etc/courier-imap/imapd
checkconfig() {
- if [ ! -e /etc/courier-imap/imapd ] ; then
+ if [[ ! -e /etc/courier-imap/imapd ]] ; then
eerror "You need an /etc/courier-imap/imapd file to run courier-imapd"
return 1
fi
source /etc/courier-imap/imapd || {
eerror "There are syntax errors in /etc/courier-imap/imapd"
- eerror "Please correct them before trying to start imapd"
+ eerror "Please correct them before trying to start courier-imapd"
return 2
}
}
@@ -25,13 +25,12 @@ checkconfig() {
start() {
checkconfig || return 1
ebegin "Starting courier-imapd"
- /usr/bin/env - /usr/GENTOO_LIBDIR/courier-imap/gentoo-imapd.rc \
- --pid=$PIDFILE
+ /usr/bin/env - /usr/GENTOO_LIBDIR/courier-imap/gentoo-imapd.rc --pid=${PIDFILE}
eend $?
}
stop() {
ebegin "Stopping courier-imapd"
- start-stop-daemon --quiet --stop --pid=$PIDFILE
+ start-stop-daemon --quiet --stop --pid=${PIDFILE}
eend $?
}