diff options
author | Mike Frysinger <vapier@gentoo.org> | 2003-02-21 17:17:35 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2003-02-21 17:17:35 +0000 |
commit | 21cffcb9e88f22eaadd7d8422bee2da643a358ac (patch) | |
tree | 8e23b15390bd5da9886e52a86d60c56ff92aea54 /net-mail | |
parent | stable on alpha (diff) | |
download | historical-21cffcb9e88f22eaadd7d8422bee2da643a358ac.tar.gz historical-21cffcb9e88f22eaadd7d8422bee2da643a358ac.tar.bz2 historical-21cffcb9e88f22eaadd7d8422bee2da643a358ac.zip |
added syntax checks
Diffstat (limited to 'net-mail')
-rw-r--r-- | net-mail/courier-imap/files/courier-imapd-ssl.rc6 | 7 | ||||
-rw-r--r-- | net-mail/courier-imap/files/courier-imapd.rc6 | 7 | ||||
-rw-r--r-- | net-mail/courier-imap/files/courier-pop3d-ssl.rc6 | 7 | ||||
-rw-r--r-- | net-mail/courier-imap/files/courier-pop3d.rc6 | 7 |
4 files changed, 24 insertions, 4 deletions
diff --git a/net-mail/courier-imap/files/courier-imapd-ssl.rc6 b/net-mail/courier-imap/files/courier-imapd-ssl.rc6 index 47d9f5d850d1..2522e1b2ebe3 100644 --- a/net-mail/courier-imap/files/courier-imapd-ssl.rc6 +++ b/net-mail/courier-imap/files/courier-imapd-ssl.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-ssl.rc6,v 1.2 2003/02/14 23:02:31 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-mail/courier-imap/files/courier-imapd-ssl.rc6,v 1.3 2003/02/21 17:17:35 vapier Exp $ depend() { need net authdaemond @@ -19,6 +19,11 @@ checkconfig() { eerror "Edit /etc/courier-imap/imapd.cnf, then run: mkimapdcert" return 2 fi + source /etc/courier-imap/imapd-ssl || { + eerror "There are syntax errors in /etc/courier-imap/imapd-ssl" + eerror "Please correct them before trying to start imapd-ssl" + return 3 + } } start() { 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() { diff --git a/net-mail/courier-imap/files/courier-pop3d-ssl.rc6 b/net-mail/courier-imap/files/courier-pop3d-ssl.rc6 index 471053046324..278fddb02fec 100644 --- a/net-mail/courier-imap/files/courier-pop3d-ssl.rc6 +++ b/net-mail/courier-imap/files/courier-pop3d-ssl.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-pop3d-ssl.rc6,v 1.2 2003/02/14 23:02:43 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-mail/courier-imap/files/courier-pop3d-ssl.rc6,v 1.3 2003/02/21 17:17:35 vapier Exp $ depend() { need net authdaemond @@ -19,6 +19,11 @@ checkconfig() { eerror "Edit /etc/courier-imap/pop3d.cnf, then run: mkpop3dcert" return 2 fi + source /etc/courier-imap/pop3d-ssl || { + eerror "There are syntax errors in /etc/courier-imap/pop3d-ssl" + eerror "Please correct them before trying to start pop3d-ssl" + return 3 + } } start() { diff --git a/net-mail/courier-imap/files/courier-pop3d.rc6 b/net-mail/courier-imap/files/courier-pop3d.rc6 index 0c080bcf5d1f..0a5780ce8679 100644 --- a/net-mail/courier-imap/files/courier-pop3d.rc6 +++ b/net-mail/courier-imap/files/courier-pop3d.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-pop3d.rc6,v 1.2 2003/02/14 23:02:49 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-mail/courier-imap/files/courier-pop3d.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/pop3d file to run courier-pop3d" return 1 fi + source /etc/courier-imap/pop3d || { + eerror "There are syntax errors in /etc/courier-imap/pop3d" + eerror "Please correct them before trying to start pop3d" + return 2 + } } start() { |