Bug 144634

Summary: daemon() mishandles command argument as calling runuser
Product: [Fedora] Fedora Reporter: Kazuyuki Maejima <maejima>
Component: initscriptsAssignee: Bill Nottingham <notting>
Status: CLOSED RAWHIDE QA Contact: Brock Organ <borgan>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: ivg231, rvokal
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: 2005-01-10 21:12:54 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 Kazuyuki Maejima 2005-01-10 05:11:40 UTC
Description of problem:

iiim service would not start, leaving the following message:

runuser: invalid option -- r
Try `runuser --help' for more information.

Version-Release number of selected component (if applicable):

8.02-1

How reproducible:

Always

Steps to Reproduce:

Run /sbin/service iiim start (or restart when lock file remains)
  
Actual results:

IIIMF input server would not start.

Expected results:

IIIMF input server starts.

Additional info:

Tracing iiim initscript by `sh -x', I found runuser
called with oddly quoted arguments.  Apparently
-c option only took '"/usr/sbin/htt', and -retryonerr
was another runuser option, which caused the error.

+ runuser -s /bin/bash - htt -c '"/usr/sbin/htt' -retryonerror '0"'

Deleting backslashes from the runuser command line in
/etc/rc.d/init.d/functions solves this problem.

           $nice runuser -s /bin/bash - $user -c "$*"

After the above chage, arguments are quoted appropriately.

+ runuser -s /bin/bash - htt -c '/usr/sbin/htt -retryonerror 0'

Comment 1 Bill Nottingham 2005-01-10 21:12:54 UTC
Thanks, will be fixed in the next build.

Comment 2 Bill Nottingham 2005-01-11 22:27:10 UTC
*** Bug 144843 has been marked as a duplicate of this bug. ***