dev-python/agate: Bump to 1.13.0
[gentoo/gentoo.git] / net-mail / courier-imap / files / courier-imap-4.0.6-r1-courier-pop3d.rc6
blob80aeabdb3c714025e9f44e836ae563c6d117c444
1 #!/sbin/openrc-run
2 # Copyright 1999-2017 Gentoo Foundation
3 # Distributed under the terms of the GNU General Public License v2
5 depend() {
6         need net courier-authlib
7         use famd
10 . /etc/courier-imap/pop3d
12 checkconfig() {
13         if [ ! -e /etc/courier-imap/pop3d ] ; then
14                 eerror "You need an /etc/courier-imap/pop3d file to run courier-pop3d"
15                 return 1
16         fi
17         . /etc/courier-imap/pop3d || {
18                 eerror "There are syntax errors in /etc/courier-imap/pop3d"
19                 eerror "Please correct them before trying to start courier-pop3d"
20                 return 2
21         }
24 start() {
25         checkconfig || return 1
26         ebegin "Starting courier-pop3d"
27         /usr/bin/env - /usr/GENTOO_LIBDIR/courier-imap/gentoo-pop3d.rc --pidfile ${PIDFILE}
28         eend $?
31 stop() {
32         ebegin "Stopping courier-pop3d"
33         start-stop-daemon --quiet --stop --pidfile ${PIDFILE}
34         eend $?