]> git.ipfire.org Git - ipfire-2.x.git/blame - src/init.d/postfix
Korrekturen
[ipfire-2.x.git] / src / init.d / postfix
CommitLineData
60cbd6e7
MT
1#!/bin/sh
2# Begin /etc/init.d/postfix
3
4# Based on sysklogd script from LFS-3.1 and earlier.
5# Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
6
7#$LastChangedBy: bdubbs $
8#$Date: 2005-08-01 14:29:19 -0500 (Mon, 01 Aug 2005) $
9
10. /etc/init.d/init-functions
11
12case "$1" in
13 start)
14 boot_mesg "Starting Postfix..."
15 loadproc /usr/sbin/postfix start
16 ;;
17
18 stop)
19 boot_mesg "Stopping Postfix..."
20 loadproc /usr/sbin/postfix stop
21 ;;
22
23 reload)
24 boot_mesg "Reloading Postfix..."
25 loadproc /usr/sbin/postfix reload
26 ;;
27
28 abort)
29 boot_mesg "Aborting Postfix..."
30 loadproc /usr/sbin/postfix abort
31 ;;
32
33 flush)
34 boot_mesg "Flushing Postfix..."
35 loadproc /usr/sbin/postfix flush
36 ;;
37
38 check)
39 boot_mesg "Checking Postfix..."
40 loadproc /usr/sbin/postfix check
41 ;;
42
43 restart)
44 $0 stop
45 sleep 1
46 $0 start
47 ;;
48
49 *)
50 echo "Usage: $0 {start|stop|reload|abort|flush|check|restart}"
51 exit 1
52 ;;
53esac
54
55# End /etc/init.d/postfix