# Get network config
. /etc/sysconfig/network
+# Get service config
+[ -f /etc/sysconfig/courier-imap-ssl ] && . /etc/sysconfig/courier-imap-ssl
+
# Check that networking is up.
if is_yes "${NETWORKING}"; then
if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status ]; then
else
msg_already_running imapd-ssl
fi
-;;
+ ;;
stop)
if [ -f /var/lock/subsys/courier-imap-ssl ]; then
msg_stopping "Courier IMAP SSL"
else
msg_not_running "Courier IMAP SSL"
fi
-;;
+ ;;
restart|force-reload)
$0 stop
$0 start
exit $?
-;;
+ ;;
status)
# FIXME: matches other services, like courier-imap
status couriertcpd
exit $?
-;;
+ ;;
*)
msg_usage "$0 {start|stop|restart|force-reload|status}"
exit 3