Bug 30288

Summary: sendmail init script dropps queue processing arg
Product: [Retired] Red Hat Linux Reporter: Need Real Name <enviscom>
Component: sendmailAssignee: Florian La Roche <laroche>
Status: CLOSED NOTABUG QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-03-13 02:28:44 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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
/bin/sh?



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
bash-1.14.7-22


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

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