diff options
author | Antoine Jacoutot <ajacoutot@cvs.openbsd.org> | 2014-07-09 14:19:23 +0000 |
---|---|---|
committer | Antoine Jacoutot <ajacoutot@cvs.openbsd.org> | 2014-07-09 14:19:23 +0000 |
commit | 516fe72d6303c5f92a993215c0d2ed779fa67525 (patch) | |
tree | feb6b7305cdcd8f1fb86db7956cabb75d359c1de /share | |
parent | 8633927ebf2e2399cef3bbd757bb305c513b7ae4 (diff) |
Add a daemon_timeout variable for rc_wait().
It represents the maximum time in seconds to wait for the start, stop
and reload actions to return. Defaults to "30".
No default behavior is changed.
ok beck@ sthen@ jasper@ giovanni@
Diffstat (limited to 'share')
-rw-r--r-- | share/man/man8/rc.d.8 | 13 | ||||
-rw-r--r-- | share/man/man8/rc.subr.8 | 13 |
2 files changed, 20 insertions, 6 deletions
diff --git a/share/man/man8/rc.d.8 b/share/man/man8/rc.d.8 index bab8c8d11a0..9aa06727467 100644 --- a/share/man/man8/rc.d.8 +++ b/share/man/man8/rc.d.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: rc.d.8,v 1.24 2013/09/29 13:17:43 jmc Exp $ +.\" $OpenBSD: rc.d.8,v 1.25 2014/07/09 14:19:22 ajacoutot Exp $ .\" .\" Copyright (c) 2011 Robert Nagy, Antoine Jacoutot, Ingo Schwarze .\" All rights reserved. @@ -24,7 +24,7 @@ .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.Dd $Mdocdate: September 29 2013 $ +.Dd $Mdocdate: July 9 2014 $ .Dt RC.D 8 .Os .Sh NAME @@ -98,7 +98,7 @@ Daemon control scripts use a fixed number of variables when starting a daemon. The following two can be overridden by site-specific values provided in .Xr rc.conf.local 8 : -.Bl -tag -width daemon_flags -offset indent +.Bl -tag -width daemon_timeout -offset indent .It Ar daemon Ns _flags Additional arguments to call the daemon with. These will be appended to any mandatory arguments already contained in the @@ -113,6 +113,13 @@ it will prevent the daemon from starting even when listed in .It Ar daemon Ns _user User to run the daemon as, using .Xr su 1 . +.It Ar daemon Ns _timeout +Maximum time in seconds to wait for the +.Cm start , +.Cm stop +and +.Cm reload +actions to return. .El .Pp To obtain the actual variable names, replace diff --git a/share/man/man8/rc.subr.8 b/share/man/man8/rc.subr.8 index 4df82f56185..cc490c2b9ea 100644 --- a/share/man/man8/rc.subr.8 +++ b/share/man/man8/rc.subr.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: rc.subr.8,v 1.24 2014/03/26 00:15:47 schwarze Exp $ +.\" $OpenBSD: rc.subr.8,v 1.25 2014/07/09 14:19:22 ajacoutot Exp $ .\" .\" Copyright (c) 2011 Robert Nagy, Antoine Jacoutot, Ingo Schwarze .\" All rights reserved. @@ -24,7 +24,7 @@ .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.Dd $Mdocdate: March 26 2014 $ +.Dd $Mdocdate: July 9 2014 $ .Dt RC.SUBR 8 .Os .Sh NAME @@ -214,7 +214,7 @@ i.e. that it will reload its configuration. .Sh ENVIRONMENT .Ic rc_cmd uses the following shell variables to control its behaviour. -.Bl -tag -width "daemon_flags" +.Bl -tag -width "daemon_timeout" .It Va daemon The path to the daemon, optionally followed by one or more whitespace separated arguments. @@ -232,6 +232,13 @@ Arguments to call the daemon with. .It Va daemon_user User to run the daemon as, using .Xr su 1 . +.It Ar daemon Ns _timeout +Maximum time in seconds to wait for the +.Cm start , +.Cm stop +and +.Cm reload +actions to return. .It Va daemon_class Login class to run the daemon with, using .Xr su 1 . |