diff options
author | 2003-02-21 17:17:35 +0000 | |
---|---|---|
committer | 2003-02-21 17:17:35 +0000 | |
commit | a23f1c988463de6f5d2dd964e9e123404192ff59 (patch) | |
tree | 42508dc7167e90d39506360dabd35fb48447dba8 /net-mail/courier-imap/files/courier-imapd.rc6 | |
parent | stable on alpha (diff) | |
download | gentoo-2-a23f1c988463de6f5d2dd964e9e123404192ff59.tar.gz gentoo-2-a23f1c988463de6f5d2dd964e9e123404192ff59.tar.bz2 gentoo-2-a23f1c988463de6f5d2dd964e9e123404192ff59.zip |
added syntax checks
Diffstat (limited to 'net-mail/courier-imap/files/courier-imapd.rc6')
-rw-r--r-- | net-mail/courier-imap/files/courier-imapd.rc6 | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/net-mail/courier-imap/files/courier-imapd.rc6 b/net-mail/courier-imap/files/courier-imapd.rc6 index b869362e1274..af60315ad4d4 100644 --- a/net-mail/courier-imap/files/courier-imapd.rc6 +++ b/net-mail/courier-imap/files/courier-imapd.rc6 @@ -1,7 +1,7 @@ #!/sbin/runscript # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later -# $Header: /var/cvsroot/gentoo-x86/net-mail/courier-imap/files/courier-imapd.rc6,v 1.2 2003/02/14 23:02:37 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-mail/courier-imap/files/courier-imapd.rc6,v 1.3 2003/02/21 17:17:35 vapier Exp $ depend() { need net authdaemond @@ -14,6 +14,11 @@ checkconfig() { 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" + return 2 + } } start() { |