services management in freebsd

проверка на състоянието на услугата

BSD# service named status

named is running as pid 879.

спиране на услугата

BSD# service named stop

Stopping named.

стартиране

BSD# service named start
Starting named.

съответно ако искаме да рестартираме

BSD# service named restart
Stopping named.
Starting named.

 

SD# service –help
Illegal option —

Usage:
service -e
service [-v] -l | -r
service [-v] <rc.d script> start|stop|etc.
service -h

-e Show services that are enabled
-l List all scripts in /etc/rc.d and /usr/local/etc/rc.d
-r Show the results of boot time rcorder
-v Verbose

 

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *