milis/ayarlar/servisler/mbd/init.d/exim

61 lines
1.3 KiB
Plaintext
Raw Normal View History

2017-03-28 04:34:52 +02:00
#!/bin/sh
########################################################################
# Begin exim
#
# Description : Starts Postfix Mail Trasfer Agent
#
# Author : Bruce Dubbs - bdubbs@linuxfromscratch.org
#
# Version : LFS 7.0
#
########################################################################
### BEGIN INIT INFO
# Provides: exim
# Required-Start: $syslog $local_fs $network
# Should-Start: $remote_fs openldap mysql postgresql saslauthd
# Required-Stop: $network
# Should-Stop: $remote_fs openldap mysql postgresql saslauthd
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Exim MTA
# Description: Controls the Exim Mail Transfer Agent
# X-LFS-Provided-By: BLFS / LFS 7.0
### END INIT INFO
. /lib/lsb/init-functions
#$LastChangedBy: bdubbs $
#$Date: 2012-05-06 23:36:06 -0500 (Sun, 06 May 2012) $
case "$1" in
start)
log_info_msg "Starting Exim..."
start_daemon /usr/sbin/exim -bd -q15m
evaluate_retval
;;
stop)
log_info_msg "Stopping exim..."
killproc /usr/sbin/exim
evaluate_retval
;;
status)
statusproc /usr/sbin/exim
;;
restart)
$0 stop
sleep 1
$0 start
;;
*)
echo "Usage: $0 {start|stop|status|restart}"
exit 1
;;
esac
# End /etc/init.d/exim