service and network comando

Gert Cuykens gert.cuykens at gmail.com
Tue Feb 1 14:48:35 PST 2005


On Tue, 1 Feb 2005 17:21:41 -0500, Charles Swiger <cswiger at mac.com> wrote:
> On Feb 1, 2005, at 5:14 PM, Gert Cuykens wrote:
> > one more list to add in my collection : )
> >
> > ps how do you start stop the sshd daemon ?
> 
> Carefully, at least if you are doing so remotely rather than on the
> console:
> 
> kill `cat /var/run/sshd.pid`
> 
> > and how do you specify all network daemons from the  ps aux list ?
> 
> Look at the processes without a terminal (TT field == "??").
> 
> --
> -Chuck
> 

Why are there 2 mysql processes ?

7rxI# ps aux | grep "mysql"
root    617  0.0  0.2  5132 1612  ??  I     7:41PM   0:00.00 /bin/sh
/usr/local/bin/mysqld_safe
mysql   628  0.0  3.2 58856 33236  ??  S     7:41PM   0:06.97
/usr/local/libexec/mysqld --basedir=/usr/local --datadir=/var/db/mysql
--user=mysql --pid-file

i want to start sshd, how do you fix this ?

7rxI# sshd
Could not load host key: /etc/ssh/ssh_host_dsa_key
Disabling protocol version 2. Could not load host key
sshd: no hostkeys available -- exiting.


More information about the freebsd-questions mailing list