Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 52788 - executing /etc/init.d/distccd start from ssh hangs.
Summary: executing /etc/init.d/distccd start from ssh hangs.
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High minor
Assignee: Lisa Seelye (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-02 09:21 UTC by Ben Gardiner
Modified: 2004-06-04 14:47 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ben Gardiner 2004-06-02 09:21:47 UTC
I have several computers set up with rsa key auth. so that there are no passwords required to execute remote commands using ssh.
It seems like the "start" phase of the /etc/init.d/distccd script doesn't like being executed from ssh. Use of the -n option only cause the "start" to fail, instead of hang.
 

Reproducible: Always
Steps to Reproduce:
1.Set up distccd as per the official guide on a computer '1'.
2.Set up rsa key authentication so that paswords are not needed to log in to '1' from '2'.
3. On '2' try the following. 

A.ssh root@1 "/etc/init.d/distccd stop"
B.ssh root@1 "/etc/init.d/distccd start"
C.ssh root@1 "/etc/init.d/distccd restart"
D.ssh -n root@1 "/etc/init.d/distccd [re]start"
Actual Results:  
A. executes fine 
B. hangs at "* Starting distccd..." 
C. same 
D. results in: " * Starting distccd...  [ !! ]" 

Expected Results:  
A. as expected 
B. should result in " * Starting distccd...  [ ok ]" 
C. same 
D. same 

I thought maybe it was the start-stop-daemon command 
inside /etc/init.d/distccd; however a similar /etc/init.d script, namely lisa, 
succeeded all 4 executions listed above. 
 
The easy workaround is to provide some useless input on stdin to 
the /etc/init.d script, ie: 
ssh -n root@1 "echo \" \" | /etc/init.d/distccd [re]start"
Comment 1 Lisa Seelye (RETIRED) gentoo-dev 2004-06-02 19:11:03 UTC
Baselayout guys, is this a bug with the distccd script? or an issue with the way init.d works? or some other issue?
Comment 2 Bret Towe 2004-06-02 19:16:07 UTC
this is more a 'bug' with ssh
happens (for me at least) with any app that is started via ssh
that the ssh session when exiting hangs/doesnt close right
hitting <enter>~.  should tell it to disconnect tho

i have a feeling tho if you ask openssh upstream its a feature not a bug...
Comment 4 Lisa Seelye (RETIRED) gentoo-dev 2004-06-04 14:47:13 UTC
taking into consideration comment 3 and comment 4 i have to close this as it is a problem upstream with openssh.