2015-02-02 12:34:26 -05:00
|
|
|
.Dd February 2, 2015
|
|
|
|
.Dt RESPAWN 1
|
|
|
|
.Os ubase
|
|
|
|
.Sh NAME
|
|
|
|
.Nm respawn
|
|
|
|
.Nd spawn the given command repeatedly
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm
|
|
|
|
.Op Fl l Ar fifo
|
|
|
|
.Op Fl d Ar N
|
|
|
|
.Ar cmd Op Ar args...
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm
|
|
|
|
spawns the given
|
|
|
|
.Ar cmd
|
|
|
|
in a new session repeatedly.
|
|
|
|
.Sh OPTIONS
|
|
|
|
.Bl -tag -width Ds
|
|
|
|
.It Fl d
|
2014-04-17 09:00:36 -04:00
|
|
|
Set the delay between invocations of \fIcmd\fR. It defaults to 0.
|
2015-02-02 12:34:26 -05:00
|
|
|
.It Fl l
|
|
|
|
Listen on the specified
|
|
|
|
.Ar fifo
|
|
|
|
for writes. For each write spawn a new instance of
|
|
|
|
.Ar cmd .
|
|
|
|
This can be used in conjunction with a process supervisor to restart a
|
|
|
|
particular program. The
|
|
|
|
.Fl l
|
|
|
|
and
|
|
|
|
.Fl d
|
|
|
|
options are incompatible. All writes are discarded.
|
|
|
|
.El
|