diff options
author | Brian Jackson <iggy@gentoo.org> | 2003-08-10 15:20:53 +0000 |
---|---|---|
committer | Brian Jackson <iggy@gentoo.org> | 2003-08-10 15:20:53 +0000 |
commit | fdf49f9b7d9e08aff7897d853963846e3731d5d6 (patch) | |
tree | eebad0385c428f47ece3f8b094d3e44e415453a2 /net-mail/teapop/files | |
parent | Bump and clean (diff) | |
download | historical-fdf49f9b7d9e08aff7897d853963846e3731d5d6.tar.gz historical-fdf49f9b7d9e08aff7897d853963846e3731d5d6.tar.bz2 historical-fdf49f9b7d9e08aff7897d853963846e3731d5d6.zip |
added init script and confd script, fixes bug 25967, thanks to port001
Diffstat (limited to 'net-mail/teapop/files')
-rw-r--r-- | net-mail/teapop/files/teapop-confd | 8 | ||||
-rw-r--r-- | net-mail/teapop/files/teapop-init | 37 |
2 files changed, 45 insertions, 0 deletions
diff --git a/net-mail/teapop/files/teapop-confd b/net-mail/teapop/files/teapop-confd new file mode 100644 index 000000000000..6d5305eded4c --- /dev/null +++ b/net-mail/teapop/files/teapop-confd @@ -0,0 +1,8 @@ +# TEAPOP command-line options. +# +# Please refer to 'man teapop' for a complete list of options. +# +# -s for standalone mode. + +TEAPOP_OPTS="-s" + diff --git a/net-mail/teapop/files/teapop-init b/net-mail/teapop/files/teapop-init new file mode 100644 index 000000000000..31b6facb17b5 --- /dev/null +++ b/net-mail/teapop/files/teapop-init @@ -0,0 +1,37 @@ +#!/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/teapop/files/teapop-init,v 1.1 2003/08/10 15:20:48 iggy Exp $ + +depend() { + need net + use logger + after * +} + +checkconfig() { + if [ ! -e /etc/teapop.passwd ] ; then + eerror "You need an /etc/teapop.passwd file to run teapop" + return 1 + fi +} + +start() { + checkconfig || return 1 + ebegin "Starting teapop" + start-stop-daemon --start --quiet \ + --pidfile /var/run/teapop.pid --exec /usr/sbin/teapop -- ${TEAPOP_OPTS} + eend $? +} + +stop() { + ebegin "Stopping teapop" + start-stop-daemon --stop --quiet \ + --pidfile /var/run/teapop.pid --exec /usr/sbin/teapop + eend $? +} + +restart() { + stop + start +} |