blob: 6569d5d6ddad4711994784d303550e1626690bf4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#!/sbin/runscript
SERVICE=exim
opts="start stop restart"
PIDFILE=/var/run/exim.pid
EXE=/usr/sbin/exim
ARGS="-bd -q15m"
depend() { need sysklogd net }
start() {
ebegin "Starting $SERVICE..."
start-stop-daemon --start --quiet --exec $EXE -- $ARGS
eend $?
}
stop() {
ebegin "Stopping $SERVICE..."
start-stop-daemon --stop --quiet --pidfile $PIDFILE --exec $EXE
eend $?
}
restart() {
stop
start
}
|