Re: s6: something like runit's ./check script
On Sep 7, 2015 2:53 PM, "Buck Evan" <buck_at_yelp.com> wrote:
>
Here you go. I made a few minor changes after this thread started (pulling
the fdmove into the background block for example) which are reflected here:
#!/command/execlineb -P
fdmove -c 2 1
background -d
{
fdmove 1 3
loopwhilex -o 1
ifelse { /bin/udevadm control --reload-rules } { echo }
foreground { sleep 1 }
exit 1
}
fdclose 3
/lib/systemd/systemd-udevd
`udevadm control --reload-rules' is the closest I've found to a udev
availability test, hence why I'm calling it here. If someone knows of a
better method, I'm all ears.
Cheers!
Received on Tue Sep 08 2015 - 00:38:22 UTC
This archive was generated by hypermail 2.3.0
: Sun May 09 2021 - 19:44:19 UTC