How to start, stop, restart a service in FreeBSD
Syntax:
# service name {start,stop,restart}
Stop sshd:
# service sshd stop
AND
# /etc/rc.d/sshd stop
Start sshd:
# service sshd start
AND
# /etc/rc.d/sshd start
Restart sshd:
# service sshd restart
AND
# /etc/rc.d/sshd restart
Yo can find out if a service is running or not with ps or /path/to/service status:
$ ps aux | grep ssh
OR:
/etc/*.d/ssh status
No comments:
Post a Comment