# Get network config
. /etc/sysconfig/network
+# Get service config
+[ -f /etc/sysconfig/courier-pop3-ssl ] && . /etc/sysconfig/courier-pop3-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 pop3d-ssl
fi
-;;
+ ;;
stop)
if [ -f /var/lock/subsys/courier-pop3-ssl ]; then
msg_stopping pop3d-ssl
else
msg_not_running pop3d-ssl
fi
-;;
+ ;;
restart|force-reload)
$0 stop
$0 start
exit $?
-;;
+ ;;
status)
status couriertcpd
exit $?
-;;
- *)
+ ;;
+*)
msg_usage "$0 {start|stop|restart|force-reload|status}"
exit 3
esac
# Get network config
. /etc/sysconfig/network
+# Get service config
+[ -f /etc/sysconfig/courier-pop3 ] && . /etc/sysconfig/courier-pop3
+
# 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 pop3d
fi
-;;
+ ;;
stop)
if [ -f /var/lock/subsys/courier-pop3 ]; then
msg_stopping pop3d
else
msg_not_running pop3d
fi
-;;
+ ;;
restart|force-reload)
$0 stop
$0 start
# 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
else
msg_already_running "Courier IMAP"
fi
-;;
+ ;;
stop)
if [ -f /var/lock/subsys/courier-imap ]; then
msg_stopping "Courier IMAP"