Skip to content

Commit

Permalink
Merge pull request #11 from 4-20ma/issue_9_fix_postfix_command
Browse files Browse the repository at this point in the history
Fix #9 remove -b command switch
  • Loading branch information
4-20ma committed May 8, 2014
2 parents 3a73a5b + 87dd604 commit 006d5a1
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 <[email protected]>
# 2014-05-08: Remove status cmd -b switch by Doc Walker <[email protected]>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <[email protected]>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <[email protected]>
# 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 006d5a1

Please sign in to comment.