2
# /etc/init.d/solid-pop3
4
# Written by Miquel van Smoorenburg <miquels@drinkel.ow.org>.
5
# Modified for Debian GNU/Linux by Ian Murdock <imurdock@gnu.ai.mit.edu>.
6
# Modified for exim by Tim Cutts <timc@chiark.greenend.org.uk>
7
# Modified for solid-pop3 by Adam D. Barratt <adam-debian@adam-barratt.org.uk>.
10
# Provides: solid-pop3d
11
# Required-Start: $local_fs $remote_fs $syslog $network
12
# Required-Stop: $local_fs $remote_fs $syslog
13
# Default-Start: 2 3 4 5
15
# Short-Description: Start/stop solid-pop3d server
16
# Description: Solid-pop3d is a POP3 server, which has support for such features as:
17
# - APOP authentication scheme
19
# - maildir and mailbox handling
21
# - expiration of messages
27
DAEMON=/usr/sbin/solid-pop3d
28
DESC="virtual pop daemon"
30
CONFIGFILE=/etc/default/solid-pop3d
32
[ -x "$DAEMON" ] || exit 0
35
[ -r "$CONFIGFILE" ] && . "$CONFIGFILE"
36
[ "$RUN_MODE" = "daemon" ] || exit 0
38
. /lib/lsb/init-functions
44
log_daemon_msg "Starting $DESC" "$NAME"
45
start-stop-daemon --start --quiet --exec $DAEMON -- $OPTS || status=$?
50
log_daemon_msg "Stopping $DESC" "$NAME"
51
start-stop-daemon --stop --quiet --oknodo --retry 30 \
52
--exec $DAEMON || status=$?
56
restart|reload|force-reload)
57
log_daemon_msg "Restarting $DESC" "$NAME"
58
start-stop-daemon --stop --quiet --oknodo --retry 30 \
60
start-stop-daemon --start --quiet --exec $DAEMON -- $OPTS || status=$?
65
log_failure_msg "Usage: $0 {start|stop|restart|force-reload}"