Bug 52639 - daemon --user has wrong output on console
daemon --user has wrong output on console
Status: CLOSED CURRENTRELEASE
Product: Red Hat Linux
Classification: Retired
Component: initscripts (Show other bugs)
7.1
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Bill Nottingham
Brock Organ
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2001-08-27 11:44 EDT by Robert Olson
Modified: 2014-03-16 22:23 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2001-08-27 11:50:08 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
/etc/rc.d/init.d/bug (819 bytes, text/plain)
2001-08-27 11:45 EDT, Robert Olson
no flags Details
Possible fix for this (not sure if it works right if the app fails) (800 bytes, patch)
2001-08-27 11:50 EDT, Robert Olson
no flags Details | Diff

  None (edit)
Description Robert Olson 2001-08-27 11:44:05 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0; AT&T 
CSM6.0)

Description of problem:
If an init.d script uses 'daemon --user proc' to start a
process, the text printed incorrect:

[root@34float7 init.d]# /etc/rc.d/init.d/bug start
[  OK  ] bug: [  OK  ]

Attached is the init.d script that produced this.

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


How reproducible:
Always

Steps to Reproduce:
1. Install /etc/rc.d/init.d/bug (attached)
2. Run /etc /rc.d/init.d/bug start
3.
	

Actual Results:  [root@34float7 init.d]# /etc/rc.d/init.d/bug start
[  OK  ] bug: [  OK  ]

Expected Results:  [root@34float7 init.d]# /etc/rc.d/init.d/bug start
Starting bug: [  OK  ]

Additional info:

The start function from /etc/rc.d/init.d/bug:


start() {
        # Check if bug is already running
        if [ ! -f /var/lock/subsys/bug ]; then

            echo -n $"Starting $prog: "
            #daemon id
            daemon --user nobody id
            RETVAL=$?
            [ $RETVAL -eq 0 ] && touch /var/lock/subsys/bug
            echo
        fi
        return $RETVAL
}
Comment 1 Robert Olson 2001-08-27 11:45:23 EDT
Created attachment 29716 [details]
/etc/rc.d/init.d/bug
Comment 2 Robert Olson 2001-08-27 11:50:05 EDT
Created attachment 29717 [details]
Possible fix for this (not sure if it works right if the app fails)
Comment 3 Bill Nottingham 2001-08-27 11:51:28 EDT
This is fixed in the roswell initscripts.

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