Bug 52639 - daemon --user has wrong output on console
Summary: daemon --user has wrong output on console
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: initscripts
Version: 7.1
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Brock Organ
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-08-27 15:44 UTC by Robert Olson
Modified: 2014-03-17 02:23 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2001-08-27 15:50:08 UTC
Embargoed:


Attachments (Terms of Use)
/etc/rc.d/init.d/bug (819 bytes, text/plain)
2001-08-27 15:45 UTC, 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 15:50 UTC, Robert Olson
no flags Details | Diff

Description Robert Olson 2001-08-27 15:44:05 UTC
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 15:45:23 UTC
Created attachment 29716 [details]
/etc/rc.d/init.d/bug

Comment 2 Robert Olson 2001-08-27 15:50:05 UTC
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 15:51:28 UTC
This is fixed in the roswell initscripts.


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