Репозитории ALT
S: | 2.3.21-alt1 |
D: | 1.1-alt0.hg20070530 |
5.1: | 1.2.4-alt5 |
4.1: | 1.0.13-alt1 |
4.0: | 1.0.3.hg20070801-alt1 |
+updates: | 1.0.3.hg20070801-alt1 |
3.0: | 0.99.14-alt2 |
Другие репозитории
Upstream: | 1.0.13 |
Группа :: Система/Серверы
Пакет: dovecot
Главная Изменения Спек Патчи Исходники Загрузить Gear Bugs and FR Repocop
#!/bin/sh
#
# /etc/rc.d/init.d/dovecot
#
# Starts the dovecot daemon
#
# chkconfig: - 54 54
# description: Dovecot Imap Server
# processname: dovecot
# Source function library.
. /etc/init.d/functions
. cert-sh-functions
PIDFILE=/var/run/dovecot/master.pid
LOCKFILE=/var/lock/subsys/dovecot
CERTCONF=/etc/dovecot/dovecot.cnf
test -x /usr/sbin/dovecot || exit 0
RETVAL=0
prog="Dovecot Imap"
generate()
{
ssl_generate "dovecot"
}
start()
{
generate
start_daemon --pidfile "$PIDFILE" --lockfile "$LOCKFILE" --expect-user root -- /usr/sbin/dovecot
RETVAL=$?
return $RETVAL
}
stop()
{
stop_daemon --pidfile "$PIDFILE" --lockfile "$LOCKFILE" --expect-user root -- /usr/sbin/dovecot
RETVAL=$?
return $RETVAL
}
restart()
{
stop
start
}
reload()
{
msg_reloading dovecot
stop_daemon --pidfile "$PIDFILE" --expect-user root -HUP -- dovecot
RETVAL=$?
return $RETVAL
}
# See how we were called.
case "$1" in
generate)
generate
;;
start)
start
;;
stop)
stop
;;
reload)
reload
;;
restart)
restart
;;
condstop)
if [ -e "$LOCKFILE" ]; then
stop
fi
;;
condrestart)
if [ -e "$LOCKFILE" ]; then
restart
fi
;;
condreload)
if [ -e "$LOCKFILE" ]; then
reload
fi
;;
status)
status --pidfile "$PIDFILE" --expect-user root -- dovecot
RETVAL=$?
;;
*)
msg_usage "${0##*/} {start|stop|reload|restart|condstop|condrestart|condreload|status}"
RETVAL=1
esac
exit $RETVAL