svc

## Name

svc — controls services monitored by supervise(1)

## Synopsis

`svc` [-u] [-d] [-o] [-p] [-c] [-h] [-a] [-i] [-t] [-k] [-x] {`services`}

## Description

`services` consists of any number of arguments, each argument naming a directory used by supervise(1).

svc applies all the options to each `service` in turn.

## Options

[-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.

[-x]

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

## See also

supervise(1)
svok(1)
svstat(1)
svscanboot(1)
svscan(1)
readproctitle(1)
fghack(1)
pgrphack(1)
multilog(1)
tai64n(1)
tai64nlocal(1)
setuidgid(1)
envuidgid(1)
envdir(1)
softlimit(1)
setlock(1)

## Author

Original code and documentation by Daniel J. Bernstein. Converted to manual pages and updated by Gerrit Pape in 2000, 2001, and 2002. Converted to DocBook XML by Jonathan de Boyne Pollard.