Subject: Re: restarting chrooted named from remote
To: None <tim@timn8r.org>
From: Christoph Kaegi <kgc@zhwin.ch>
List: netbsd-users
Date: 09/17/2003 08:56:33
On 16.09-14:24, Tim Bandy wrote:
> Christoph>
> Christoph> I want to restart named9, running on a NetBSD-1.6.1
> Christoph> machine by doing:
> Christoph>
> Christoph> # ssh remote.machine "/etc/rc.d/named9 restart"
> Christoph>
> Christoph> This basically works but the problem is, the ssh
> Christoph> session never returns.
> Christoph>
> Christoph> Does anyone have an idea, why this could be?
> Christoph>
> Christoph> A wild guess would be, that the session looses its pty
> Christoph> and that ssh wouldn't like that. But I also tried ssh
> Christoph> -T, with same results.
>
> I think that this answers your question.
>
> http://www.openssh.org/faq.html#3.10
>
Thanks for the hint.
It makes sense for ssh to wait until background jobs are
finished. But, named detaches from the terminal and runs
as a daemon. I wouldn't consider this a background
process.
Chris
--
----------------------------------------------------------------------
Christoph Kaegi kgc@zhwin.ch
----------------------------------------------------------------------