Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
svc(8)			     System Manager's Manual			  svc(8)

NAME
     svc - controls services monitored by supervise(8).

SYNOPSIS
     svc [ -+=Ll12udopchaitkwxq ] services

DESCRIPTION
     services consists of any number of arguments, each argument naming a direc-
     tory used by supervise(8).

     svc applies all the options to each service in turn.

OPTIONS
     -=     Send  all  subsequent  signals  to the parent process instead of its
	    process group. This is the default.

     -+     Send all subsequent signals to the entire process group  instead  of
	    just the parent process.

     -L     Send  all  subsequent  signals to the running log process, if it ex-
	    ists.

     -l     (default) Send all subsequent signals to the main process.	This may
	    be useful for controlling both a log and main process in one shot or
	    avoiding race conditions after using -L.

     -u     Up. If the service is not running, start it. If the  service  stops,
	    restart it.

     -d     Down.  If  the  service is running, send it a TERM signal and then a
	    CONT signal. After it stops, do not restart it.

     -o     Once. If the service is not running, start it. Do not restart it  if
	    it stops.

     -p     Pause. Send the service a STOP signal.

     -c     Continue. Send the service a CONT signal.

     -h     Hangup. Send the service a HUP signal.

     -a     Alarm. Send the service an ALRM signal.

     -i     Interrupt. Send the service an INT signal.

     -t     Terminate. Send the service a TERM signal.

     -k     Kill. Send the service a KILL signal.

     -q     Quit. Send the service a QUIT signal.

     -1     User 1. Send the service a USR1 signal.

     -2     User 2. Send the service a USR2 signal.

     -w     Window resize.  Send the service a WINCH signal.

     -x     Exit.  supervise(8) will exit as soon as the service is down. If you
	    use  this  option  on a stable system, you're doing something wrong;
	    supervise(8) is designed to run forever.

ENVIRONMENT
     SUPERVISEDIR
	    If set, the named directory is used instead  of  supervise	for  the
	    status  information  and  control files.  If $SUPERVISEDIR is an ab-
	    solute path, it is suffixed with the path  to  s  with  all  slashes
	    ("/") replaced with colons (":").

SEE ALSO
     envdir(8),  envini(8),  envuidgid(8),  fghack(8), multilog(8), pgrphack(8),
     readproctitle(8),	setlock(8),  setuidgid(8),  softlimit(8),  supervise(8),
     svok(8), svscan(8), svscanboot(8), svstat(8), tai64n(8), tai64nlocal(8)

									  svc(8)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=svc&sektion=8&manpath=FreeBSD+Ports+15.1.quarterly>

home | help