Bug 30288 - sendmail init script dropps queue processing arg
Summary: sendmail init script dropps queue processing arg
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: sendmail   
(Show other bugs)
Version: 6.2
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Florian La Roche
QA Contact: David Lawrence
Depends On:
TreeView+ depends on / blocked
Reported: 2001-03-02 06:54 UTC by Need Real Name
Modified: 2007-04-18 16:31 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-03-13 02:28:44 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Need Real Name 2001-03-02 06:54:10 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.76 [en] (X11; U; Linux 2.2.16-22enterprise i686)

Note the use of the 'echo' statements in forming the arg string used to
invoke sendmail:

This is what is distributed with RH6.X... the -q arg is lost:

daemon /usr/sbin/sendmail $([ "$DAEMON" = yes ] && echo " -bd ") \
                          $([ -n "$QUEUE" ] && echo -q$QUEUE)

This is my hack which fixes this:

daemon /usr/sbin/sendmail $([ "$DAEMON" = yes ] && echo -n " -bd ") \
                          $([ -n "$QUEUE" ] && echo -n -q$QUEUE)

(who wrote this!)

Reproducible: Always
Steps to Reproduce:
1. /etc/rc.d/init.d/sendmail start
2. tail /var/log/maillog
3. observe the startup report for sendmail

Actual Results:  maillog.4:Jan 22 20:52:21 gateway sendmail[16197]:
starting daemon
(8.9.3): SMTP

Expected Results:  maillog:Feb 22 10:57:19 gateway sendmail[18610]:
starting daemon
(8.9.3): SMTP+queueing@01:00:00

see my description for my quick fix

Comment 1 Florian La Roche 2001-03-07 07:59:33 UTC
$ echo $(echo one) $(echo two)
one two

What do you get on your 6.2 installation for this? What shell is used as

Comment 2 Need Real Name 2001-03-07 23:46:46 UTC
[andrewd@gateway andrewd]$ echo $(echo one) $(echo two)
one two

[andrewd@gateway andrewd]$ rpm -qf /bin/sh

Comment 3 Need Real Name 2001-03-13 02:28:39 UTC

echo `echo one` `echo two`

may be a little more standard for command expansion (works with the solaris
/bin/sh where as $(command) doesn't). Gives the same result.

Comment 4 Florian La Roche 2001-07-23 13:23:38 UTC
$() should work fine with any reasonable shell: bash,pdksh,zsh, so I close
this bug.

Florian La Roche

Note You need to log in before you can comment on or make changes to this bug.