diff options
author | Roy Marples <roy@marples.name> | 2008-06-03 11:57:15 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2008-06-03 11:57:15 +0000 |
commit | 587051ec679229632d107b24f61d01191f58bc73 (patch) | |
tree | cb71157669035c5515b96908dccdb8669c705565 /man/runscript.8 | |
parent | f2ea7ca51443f2fec41a6a3cbcf468fa84be2a90 (diff) |
Add the ewaitfile function so init scripts can wait until sockts are created, Gentoo #175783.
Diffstat (limited to 'man/runscript.8')
-rw-r--r-- | man/runscript.8 | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/man/runscript.8 b/man/runscript.8 index 6f3bd439..b219e52f 100644 --- a/man/runscript.8 +++ b/man/runscript.8 @@ -22,7 +22,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd Mar 19, 2008 +.Dd Jun 03, 2008 .Dt RUNSCRIPT 8 SMM .Os OpenRC .Sh NAME @@ -173,8 +173,9 @@ If does not equal 0 then output the string using .Ic eerror and !! in square brackets -at the end of the line. Otherwise output ok in square brackets at the end of -the line. The value of +at the end of the line. +Otherwise output ok in square brackets at the end of the line. +The value of .Ar retval is returned. .It Ic ewend Ar retval Op Ar string @@ -193,6 +194,14 @@ output when the environment variable .Va EINFO_VERBOSE is true. .Bl -tag -width indent +.It Ic ewaitfile Ar timeout Ar file1 Ar file2 ... +Wait for +.Ar timeout +seconds until all files exist. +Returns 0 if all files exist, otherwise non zero. +If +.Ar timeout +is less then 1 then we wait indefinitely. .It Ic is_newer_than Ar file1 Ar file2 ... If .Ar file1 |