diff options
author | Juan RP <xtraeme@gmail.com> | 2014-04-26 09:28:15 +0200 |
---|---|---|
committer | Juan RP <xtraeme@gmail.com> | 2014-04-26 09:29:39 +0200 |
commit | 7aecf46ec589a5bc49ae2392137bcd0e7468dd08 (patch) | |
tree | 2164dbf05eea99348d6a0bf893b9fd218bc9ee83 /pause.1 | |
parent | 72c31feddc31ca0e9f5311a3133d26eef69de971 (diff) | |
download | runit-void-7aecf46ec589a5bc49ae2392137bcd0e7468dd08.tar.gz runit-void-7aecf46ec589a5bc49ae2392137bcd0e7468dd08.tar.xz runit-void-7aecf46ec589a5bc49ae2392137bcd0e7468dd08.zip |
Add halt/pause utils from ignite.
Diffstat (limited to 'pause.1')
-rw-r--r-- | pause.1 | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/pause.1 b/pause.1 new file mode 100644 index 0000000..b5a5dd6 --- /dev/null +++ b/pause.1 @@ -0,0 +1,39 @@ +.Dd September 27, 2012 +.Dt PAUSE 1 +.Os Linux +.Sh NAME +.Nm pause +.Nd don't exit, efficiently +.Sh SYNOPSIS +.Nm pause +.Sh DESCRIPTION +.Nm pause +waits to be terminated by a signal. +It can be used when service supervision is used but there is no +long-running program to supervise. +.Nm pause +uses minimal system resources. +.Sh EXAMPLES +Setting up a static IP address with +.Xr plugsv 8 . +.Pp +.Pa /etc/netsv/eth0/run : +.Bd -literal -offset indent +#!/bin/sh +ip link set eth0 up +ip addr add 192.0.2.1/24 dev eth0 +exec pause +.Ed +.Pp +.Pa /etc/netsv/eth0/finish : +.Bd -literal -offset indent +#!/bin/sh +ip addr del 192.0.2.1/24 dev eth0 +ip link set eth0 down +.Ed +.Sh SEE ALSO +.Xr sleep 1 , +.Xr pause 3 +.Sh AUTHOR +.An Christian Neukirchen , +.Mt chneukirchen@gmail.com . |