Skip to content

Commit

Permalink
Fix #9 remove -b command switch
Browse files Browse the repository at this point in the history
  • Loading branch information
4-20ma committed May 8, 2014
1 parent 3a73a5b commit 87dd604
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions templates/default/SOURCES/postfix-etc-init.d-postfix
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 2014-05-08: Remove status cmd -b switch by Doc Walker <4-20ma@wvfans.net>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
Expand All @@ -23,7 +24,7 @@
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that
# Description: Postfix is a Mail Transport Agent, which is the program that
# moves mail from one machine to another.
### END INIT INFO

Expand All @@ -43,7 +44,7 @@ ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp
# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) -b /usr/libexec/postfix/master master >/dev/null 2>&1
status -p $pidfile -l $(basename $lockfile) /usr/libexec/postfix/master master >/dev/null 2>&1
running=$?

conf_check() {
Expand Down Expand Up @@ -151,7 +152,7 @@ case "$1" in
check
;;
status)
status -p $pidfile -l $(basename $lockfile) -b /usr/libexec/postfix/master master
status -p $pidfile -l $(basename $lockfile) /usr/libexec/postfix/master master
;;
condrestart)
[ $running -eq 0 ] || exit 0
Expand Down

0 comments on commit 87dd604

Please sign in to comment.