---
name: "svwaitup"
section: "8"
platform: "linux"
package: "runit"
version: "1.0.5-3"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/svwaitup"
---

# svwaitup(8)

waits for services controlled by runsv(8) or supervise(8) to be up

## NAME

svwaitup - waits for services controlled by [runsv(8)](/runsv/8.md) or [supervise(8)](/supervise/8.md) to be up

## SYNOPSIS

**svwaitup** \[ **-v** \] \[ **-s** *sec* \] *services*

## DESCRIPTION

*services* consist of one or more arguments. Each *service* directory must start with a slash.

**svwaitup** checks each *service* given at the command line for being at least the specified number of seconds *sec* up. The *services* given at the command line must be controlled by [**runsv**(8)](/runsv/8.md), or [**supervise**(8)](/supervise/8.md).

**svwaitup** blocks until all *services* were up and running at least *sec* seconds when **svwaitup** was checking or reports errors.

## OPTIONS

- **-v**

  verbose. Print verbose messages to stderr.

- **-s *sec***

  Set the minimum number of seconds each *service* has to be up to *sec* seconds. *sec* must be between 2 and 600. Default is 2.

## EXIT CODES

**svwaitup** returns 0 as soon as all *services* were at least *sec* seconds up.

**Note**: If **svwaitup** exits 0, it does not guarantee that all *services* are actually running. A *service* could have crashed immediatly after **svwaitup** was successfully checking it to be up *sec* seconds. *services* should be designed not to rely on **svwaitup** to resolve dependencies.

For each *service* that is down and not requested to become up, or that causes an error while checking (e.g. [**runsv**(8)](/runsv/8.md) is not running), **svwaitup** increases the exit code by one and exits non zero. The maximum is 100.

**svwaitup** returns 111 on error.

## SEE ALSO

[svwaitdown(8)](/svwaitdown/8.md), [runsv(8)](/runsv/8.md), [runsvctrl(8)](/runsvctrl/8.md), [runsvstat(8)](/runsvstat/8.md), [chpst(8)](/chpst/8.md), [svlogd(8)](/svlogd/8.md), [runit(8)](/runit/8.md), [runit-init(8)](/runit-init/8.md), [runsvdir(8)](/runsvdir/8.md), [runsvchdir(8)](/runsvchdir/8.md), [utmpset(8)](/utmpset/8.md)

 http://smarden.org/runit/\
  http://cr.yp.to/daemontools.html

## AUTHOR

Gerrit Pape \<pape@smarden.org\>
