| pause(1) | don't exit, efficiently |
| pause(2) | wait for signal |
| pause(3P, 3p) | suspend the thread until a signal is received |
| PAUSE(1) | General Commands Manual | PAUSE(1) |
pause — don't
exit, efficiently
pause |
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. pause uses minimal system
resources.
Setting up a static IP address with plugsv(8).
/etc/netsv/eth0/run:
#!/bin/sh ip link set eth0 up ip addr add 192.0.2.1/24 dev eth0 exec pause
/etc/netsv/eth0/finish:
#!/bin/sh ip addr del 192.0.2.1/24 dev eth0 ip link set eth0 down
Leah Neukirchen, leah@vuxu.org.
| September 27, 2012 | Linux |