aboutsummaryrefslogtreecommitdiff
path: root/busybox/pause.1
diff options
context:
space:
mode:
authorWoodpecker CI <emmett1.2miligrams@protonmail.com>2025-06-03 14:32:34 +0000
committerWoodpecker CI <emmett1.2miligrams@protonmail.com>2025-06-03 14:32:34 +0000
commit8df1d35909ec2d57a6845f5b2c26ee1e83cfd032 (patch)
tree88e5aaa8cf9d3c0538cdff935a56786705548d75 /busybox/pause.1
parent96ec28ea0d2c05032f40f50bc6b9de7020138f57 (diff)
downloadalicelinux-8df1d35909ec2d57a6845f5b2c26ee1e83cfd032.tar.gz
alicelinux-8df1d35909ec2d57a6845f5b2c26ee1e83cfd032.zip
Woodpecker CI 5171f1fdd74e7137c305450dd69a29fa5be4143f [SKIP CI]
Diffstat (limited to 'busybox/pause.1')
-rw-r--r--busybox/pause.139
1 files changed, 39 insertions, 0 deletions
diff --git a/busybox/pause.1 b/busybox/pause.1
new file mode 100644
index 00000000..1e56f20a
--- /dev/null
+++ b/busybox/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 2
+.Sh AUTHOR
+.An Leah Neukirchen ,
+.Mt leah@vuxu.org .