How to start, stop, restart a service in FreeBSD
Syntax: # service name {start,stop,restart}Stop sshd:
# service sshd stopAND
# /etc/rc.d/sshd stopStart sshd:
# service sshd startAND
# /etc/rc.d/sshd startRestart sshd:
# service sshd restartAND
# /etc/rc.d/sshd restartYo can find out if a service is running or not with ps or /path/to/service status:
$ ps aux | grep sshOR:
/etc/*.d/ssh status
No comments:
Post a Comment