diff options
author | Kyle Manna <nitro@gentoo.org> | 2002-06-13 19:01:00 +0000 |
---|---|---|
committer | Kyle Manna <nitro@gentoo.org> | 2002-06-13 19:01:00 +0000 |
commit | dcf4484806b7812a1263fcffd98240642b55657b (patch) | |
tree | 064ed2ad86e549df6640de113f7bb4ff3a16f354 /net-mail/courier-imap/files/courier-pop3d.rc6 | |
parent | New init scripts. (diff) | |
download | gentoo-2-dcf4484806b7812a1263fcffd98240642b55657b.tar.gz gentoo-2-dcf4484806b7812a1263fcffd98240642b55657b.tar.bz2 gentoo-2-dcf4484806b7812a1263fcffd98240642b55657b.zip |
New init scripts
Diffstat (limited to 'net-mail/courier-imap/files/courier-pop3d.rc6')
-rw-r--r-- | net-mail/courier-imap/files/courier-pop3d.rc6 | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/net-mail/courier-imap/files/courier-pop3d.rc6 b/net-mail/courier-imap/files/courier-pop3d.rc6 new file mode 100644 index 000000000000..ec6237ec0377 --- /dev/null +++ b/net-mail/courier-imap/files/courier-pop3d.rc6 @@ -0,0 +1,31 @@ +#!/sbin/runscript +# Copyright 1999-2002 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.1 2002/06/13 19:01:00 nitro Exp $ + +depend() { + need net authdaemond +} + +source /etc/courier-imap/pop3d + +checkconfig() { + if [ ! -e /etc/courier-imap/pop3d ] ; then + eerror "You need an /etc/courier-imap/pop3d file to run courier-pop3d" + return 1 + fi +} + +start() { + checkconfig || return 1 + ebegin "Starting courier-pop3d" + start-stop-daemon --quiet --start --exec /usr/bin/env - /usr/lib/courier-imap/gentoo-pop3d.rc \ + --pidfile $PIDFILE + eend $? +} + +stop() { + ebegin "Stopping courier-pop3d" + start-stop-daemon --quiet --stop --pidfile $PIDFILE + eend $? +} |