Add "retry" option for the stop() template
This commit is contained in:
parent
6d5a2d5f9e
commit
fb8db18d79
@ -21,7 +21,7 @@
|
|||||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
.\" SUCH DAMAGE.
|
.\" SUCH DAMAGE.
|
||||||
.\"
|
.\"
|
||||||
.Dd November 4, 2009
|
.Dd December 31, 2011
|
||||||
.Dt RUNSCRIPT 8 SMM
|
.Dt RUNSCRIPT 8 SMM
|
||||||
.Os OpenRC
|
.Os OpenRC
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
@ -112,6 +112,9 @@ List of arguments to pass to the daemon when starting.
|
|||||||
Pidfile to use for the above defined command.
|
Pidfile to use for the above defined command.
|
||||||
.It Ar name
|
.It Ar name
|
||||||
Display name used for the above defined command.
|
Display name used for the above defined command.
|
||||||
|
.It Ar retry
|
||||||
|
You can either specify a timeout in seconds or a multiple signal/timeout pairs
|
||||||
|
as a stopping schedule. This is only used during stop().
|
||||||
.El
|
.El
|
||||||
.Sh DEPENDENCIES
|
.Sh DEPENDENCIES
|
||||||
You should define a
|
You should define a
|
||||||
|
@ -151,6 +151,7 @@ stop()
|
|||||||
[ -n "$command" -o -n "$procname" -o -n "$pidfile" ] || return 0
|
[ -n "$command" -o -n "$procname" -o -n "$pidfile" ] || return 0
|
||||||
ebegin "Stopping ${name:-$RC_SVCNAME}"
|
ebegin "Stopping ${name:-$RC_SVCNAME}"
|
||||||
start-stop-daemon --stop \
|
start-stop-daemon --stop \
|
||||||
|
${retry:+--retry} $retry \
|
||||||
${command:+--exec} $command \
|
${command:+--exec} $command \
|
||||||
${procname:+--name} $procname \
|
${procname:+--name} $procname \
|
||||||
${pidfile:+--pidfile} $pidfile \
|
${pidfile:+--pidfile} $pidfile \
|
||||||
|
Loading…
Reference in New Issue
Block a user