#!/bin/bash # # mailsys This shell script takes care of starting and stopping Postfix # author : xingyu.wang 2004/1/28 # # chkconfig: 2345 80 30 # description: Postfix is a Mail Transport Agent, which is the program # that moves mail from one machine to another. # # processname: mailsys # pidfile: /var/run/postfix.pid # Source function library. . /etc/rc.d/init.d/functions # Source networking configuration. . /etc/sysconfig/network
if [ $RETVAL -eq 0 ]; then rm -f /var/lock/subsys/postfix success $"$prog stop" else failure $"$prog stop failure" fi
echo return $RETVAL }
# See how we were called. case "$1" in start) start ;; stop) stop ;; restartreload) stop start RETVAL=$? ;; *) echo $"Usage: $0 {startstoprestart}" exit 1 esac exit $RETVAL
Return-Path: Delivered-To: Received: by mail.cngnu.org (Postfix, from userid 0) id 6A7C4CCCF; Mon, 26 Jan 2004 21:27:23 +0800 (CST) To: trueuser@cngnu.org Subject: test by me Message-Id: <20040126212723.6A7C4CCCF@mail.cngnu.org> Date: Mon, 26 Jan 2004 21:27:23 +0800 (CST) From: root@cngnu.org (root)