]> git.pld-linux.org Git - packages/exim.git/blame - exim.init
- added missing translations
[packages/exim.git] / exim.init
CommitLineData
6a7ed0b9 1#!/bin/sh
2#
3# exim This shell script takes care of starting and stopping
4# Exim.
5#
f4117708 6# chkconfig: 2345 80 30
7#
8# description: Exim is a Mail Transport Agent, which is the program \
9# that moves mail from one machine to another.
10#
11# processname: exim
12# config: /etc/exim.cf
13# pidfile: /var/run/exim.pid
14
15
16# Source function library
6a7ed0b9 17. /etc/rc.d/init.d/functions
18
f4117708 19# Get network config
6a7ed0b9 20. /etc/sysconfig/network
21
f4117708 22# Get service config
23if [ -f /etc/sysconfig/hc-cron ]; then
24 . /etc/sysconfig/hc-cron
6a7ed0b9 25else
26 DAEMON=yes
27 QUEUE=1h
28fi
29
6a7ed0b9 30
31# See how we were called.
32case "$1" in
33 start)
f4117708 34 # Check if the service is already running?
35 if [ ! -f /var/lock/subsys/exim ]; then
36 show Starting exim
37 daemon exim $([ "$DAEMON" = yes ] && echo -bd) \
38 $([ -n "$QUEUE" ] && echo -q$QUEUE)
39 else
40 echo "Exim already is running"
41 fi
6a7ed0b9 42 touch /var/lock/subsys/exim
43 ;;
44 stop)
45 # Stop daemons.
bd084898 46 show Shutting down exim:
6a7ed0b9 47 killproc exim
6a7ed0b9 48 rm -f /var/lock/subsys/exim
49 ;;
f4117708 50 restart|reload)
6a7ed0b9 51 $0 stop
52 $0 start
53 ;;
54 status)
55 status exim
56 ;;
57 *)
f4117708 58 echo "Usage: $0 {start|stop|staus|restart|reload}"
6a7ed0b9 59 exit 1
60esac
61
62exit 0
63
This page took 0.106655 seconds and 4 git commands to generate.