Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Jan 2003 00:16:13 +0100 (CET)
From:      Andrew Prewett <andrew@kronos.HomeUnix.com>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Deleted VAR
Message-ID:  <20030108001154.J14132@slave.east.ath.cx>
In-Reply-To: <15899.18469.466733.558236@guru.mired.org>
References:  <DAV28b3F45qHjDv4IiK00000142@hotmail.com> <15899.5780.980725.387591@guru.mired.org> <DAV62wRFzYPKmnXdv240000e5e6@hotmail.com> <15899.8300.60339.429750@guru.mired.org> <20030107200941.F63741@slave.east.ath.cx> <15899.11387.156085.303405@guru.mired.org> <20030107203858.B63741@slave.east.ath.cx> <15899.18469.466733.558236@guru.mired.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Jan 7 Mike Meyer wrote:

> In <20030107203858.B63741@slave.east.ath.cx>, Andrew Prewett <andrew@kronos.HomeUnix.com> typed:
> > Today Mike Meyer wrote:
> > > In <20030107200941.F63741@slave.east.ath.cx>, Andrew Prewett <andrew@kronos.HomeUnix.com> typed:
> > > > Today Mike Meyer wrote:
> > > > > [Context lost to top posting.]
> > > > >
> > > > > In <DAV62wRFzYPKmnXdv240000e5e6@hotmail.com>, Kenzo <kenzo_chin@hotmail.com> typed:
> > > > > > Yes, that worked, but now I can't sshd to it anymore.
> > > > > > looking in the auth.log file, it sais " Bind to port 22 on 0.0.0.0 failed
> > > > > > address already in use.
> > > > > > so I edit the file /etc/ssh/sshd_config to ListenAddress 10.25.2.60 ( the
> > > > > > server's address ) then restart.
> > > > > > in auth.log, it says " Server Listening on 10.25.2.60 port 22
> > > > > >
> > > > > > but it still doesn't work.  what else do I need to do?
> > > > > Put /etc/ssh/sshd_config back the way it was. Then kill and restart
> > > > > the ssh daemon. Again, rebooting the system to cause any daemons that
> > > > > have files in /var open to close them - thus freeing the space - and
> > > > > reopen with real files is a good idea.
> > > >  No, except few cases (new kernel, hw change), you newer must reboot the
> > > > system. It's not a windoze. If a program (process) is killed/terminated, then
> > > > all opened files will be closed (implicitly or explicitly).
> > > True, you don't have to reboot. However, I'd do it because that's
> > > faster than finding every process that has an open file and /var and
> > > killing and restarting those processes. If you really don't want him
> > > to reboot, please tell him how to find and restart all those
> > > processes.
> >  as a privileged user, use `shutdown now' (or `kill -15 <pid of init>', or
> > `init 1'), to go in single user mode, logout to go back. There is a
> > little more work, if you don't want to kick out the logged in users.
>
> That's a reboot. It's not clear you can do this properly without
> kicking out the logged in users.

`shutdown now' = restart in single user mode, _not_ reboot or halt,
and `kill <pid-of-init>' and `init 1' is equivalent with `shutdown now'.

	-andrew


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030108001154.J14132>