[Lunar-commits] CVS: moonbase/mail/courier-imap/init.d imap, NONE,
1.1
Auke Kok
sofar at lunar-linux.org
Mon Sep 20 15:56:58 UTC 2004
- Previous message: [Lunar-commits] CVS: moonbase/mail/courier-imap BUILD, 1.4,
1.5 DETAILS, 1.7, 1.8 POST_INSTALL, 1.1.1.1, 1.2 CONFIGURE,
1.1.1.1, NONE PRE_REMOVE, 1.1.1.1, NONE
- Next message: [Lunar-commits] CVS: moonbase/mail/courier-imap DETAILS,1.8,1.9
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /var/cvs/lunar/moonbase/mail/courier-imap/init.d
In directory espresso.lunar-linux.org:/tmp/cvs-serv12434/init.d
Added Files:
imap
Log Message:
Version bump, and I did some *WHACK* *WHACK* *WHACK* adjusting to make it behave like a normal module. Watch lunar->protected entry too... heavily needed. (Striker, she's all yours!)
--- NEW FILE: imap ---
#!/bin/sh
#
# This is an /etc/init.d file for Courier-IMAP
#
# chkconfig: 345 80 20
# description: Courier-IMAP - IMAP server
#
prefix=/usr
exec_prefix=/usr
bindir=${exec_prefix}/bin
sbindir=${exec_prefix}/sbin
case "$1" in
start)
cd /
. /etc/courier/imapd
mkdir -p /var/lock/subsys
touch /var/lock/subsys/courier-imap
echo -n "Starting imap:"
case x$IMAPDSTART in
x[yY]*)
# Start daemons.
/usr/libexec/imapd.rc start
echo -n " imap"
;;
esac
. /etc/courier/imapd-ssl
case x$IMAPDSSLSTART in
x[yY]*)
if test -x $COURIERTLS
then
# First time we start this, generate a dummy SSL certificate.
if test ! -f $TLS_CERTFILE
then
echo -n " generating-SSL-certificate..."
/etc/courier/cert/mkimapdcert >/dev/null 2>&1
fi
/usr/libexec/imapd-ssl.rc start
echo -n " imap-ssl"
fi
;;
esac
POP3DSTART=""
POP3DSSLSTART=""
if test -f /etc/courier/pop3d
then
. /etc/courier/pop3d
fi
case x$POP3DSTART in
x[yY]*)
# Start daemons.
/usr/libexec/pop3d.rc start
echo -n " pop3"
;;
esac
if test -f /etc/courier/pop3d-ssl
then
. /etc/courier/pop3d-ssl
fi
case x$POP3DSSLSTART in
x[yY]*)
if test -x $COURIERTLS
then
# First time we start this, generate a dummy SSL certificate.
if test ! -f $TLS_CERTFILE
then
echo -n " generating-SSL-certificate..."
/etc/courier/cert/mkpop3dcert >/dev/null 2>&1
fi
/usr/libexec/pop3d-ssl.rc start
echo -n " pop3-ssl"
fi
;;
esac
echo ""
;;
stop)
echo -n "Stopping imap:"
. /etc/courier/imapd
. /etc/courier/imapd-ssl
/usr/libexec/imapd.rc stop
echo -n " imap"
if test -x $COURIERTLS
then
/usr/libexec/imapd-ssl.rc stop
echo -n " imap-ssl"
fi
if test -f /etc/courier/pop3d
then
/usr/libexec/pop3d.rc stop
echo -n " pop3"
if test -x $COURIERTLS
then
/usr/libexec/pop3d-ssl.rc stop
echo -n " pop3-ssl"
fi
fi
echo ""
;;
restart)
$0 stop
$0 start
;;
esac
exit 0
- Previous message: [Lunar-commits] CVS: moonbase/mail/courier-imap BUILD, 1.4,
1.5 DETAILS, 1.7, 1.8 POST_INSTALL, 1.1.1.1, 1.2 CONFIGURE,
1.1.1.1, NONE PRE_REMOVE, 1.1.1.1, NONE
- Next message: [Lunar-commits] CVS: moonbase/mail/courier-imap DETAILS,1.8,1.9
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Lunar-commits
mailing list