![]() |
![]()
| ![]() |
![]()
NAME
SYNOPSIS
DESCRIPTIONThe The set of permissible values for command depends on the particular rc.d script being invoked. For a list of standard commands which are supported by most rc.d scripts, see rc(8). The options are as follows:
ENVIRONMENTWhen used to run rc.d scripts the EXIT STATUSThe EXAMPLESThese are some examples of the most common service commands. For a full list of commands available in most rc.d scripts, see rc(8). Enable a service, then start it: service sshd enable service sshd start Stop a service, then disable it: service sshd stop service sshd disable Start a service which is not enabled: service sshd onestart Report the status of a service: service named status Restart a service running in a jail: service -j dns named restart Start a service with a specific environment variable set: service -E LC_ALL=C.UTF-8 named start Report a verbose listing of all available services: service -rv The following programmable completion entry can be used in csh(1) for the names and common commands of the rc.d scripts: complete service 'c/-/(e l r v)/' 'p/1/`service -l`/' \ 'n/*/(start stop reload restart \ status rcvar onestart onestop)/' The following programmable completion entry can be used in bash(1) for the names of the rc.d scripts: _service () { local cur cur=${COMP_WORDS[COMP_CWORD]} COMPREPLY=( $( compgen -W '$( service -l )' -- $cur ) ) return 0 } complete -F _service service SEE ALSObash(1) (ports/shells/bash), rc.conf(5), rc(8), rcorder(8), sysrc(8) HISTORYThe AUTHORSThis manual page was written by Douglas Barton <dougb@FreeBSD.org>.
|