+}
+
+condrestart() {
+ if [ ! -f /var/lock/subsys/courier-imap-ssl ]; then
+ msg_not_running "Courier IMAP SSL"
+ RETVAL=$1
+ return
+ fi
+
+ stop
+ start
+}
+
+RETVAL=0
+# See how we were called.
+case "$1" in
+ start)
+ start
+ ;;
+ stop)
+ stop
+ ;;
+ restart)
+ stop
+ start
+ ;;
+ force-reload)
+ condrestart 7
+ ;;
+ status)
+ # FIXME: matches other services, like courier-imap
+ status couriertcpd
+ exit $?
+ ;;
+*)
+ msg_usage "$0 {start|stop|restart|force-reload|status}"
+ exit 3