alicelinux

A lightweight musl + clang/llvm + libressl + busybox distro
git clone https://codeberg.org/emmett1/alicelinux
Log | Files | Refs | README | LICENSE

pause.1 (741B)


      1 .Dd September 27, 2012
      2 .Dt PAUSE 1
      3 .Os Linux
      4 .Sh NAME
      5 .Nm pause
      6 .Nd don't exit, efficiently
      7 .Sh SYNOPSIS
      8 .Nm pause
      9 .Sh DESCRIPTION
     10 .Nm pause
     11 waits to be terminated by a signal.
     12 It can be used when service supervision is used but there is no
     13 long-running program to supervise.
     14 .Nm pause
     15 uses minimal system resources.
     16 .Sh EXAMPLES
     17 Setting up a static IP address with
     18 .Xr plugsv 8 .
     19 .Pp
     20 .Pa /etc/netsv/eth0/run :
     21 .Bd -literal -offset indent
     22 #!/bin/sh
     23 ip link set eth0 up
     24 ip addr add 192.0.2.1/24 dev eth0
     25 exec pause
     26 .Ed
     27 .Pp
     28 .Pa /etc/netsv/eth0/finish :
     29 .Bd -literal -offset indent
     30 #!/bin/sh
     31 ip addr del 192.0.2.1/24 dev eth0
     32 ip link set eth0 down
     33 .Ed
     34 .Sh SEE ALSO
     35 .Xr sleep 1 ,
     36 .Xr pause 2
     37 .Sh AUTHOR
     38 .An Leah Neukirchen ,
     39 .Mt leah@vuxu.org .