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

 

 

 

No such file or directory: Failed to enable the ‘httpready’ Accept Filter

зареждаме драйвера

kldload accf_http

BSD# /usr/local/etc/rc.d/apache22 restart
Performing sanity check on apache22 configuration:
Syntax OK
Stopping apache22.
Waiting for PIDS: 55392.
Performing sanity check on apache22 configuration:
Syntax OK
Starting apache22.

добавяме го да се изпълнява при стартирането на системата

BSD# echo ‘accf_http_load=”YES”‘ >> /boot/loader.conf