rc-service: add --ifcrashed option

This works like the other --if options. If the service is crashed, run
the command.

This fixes #154.
This commit is contained in:
William Hubbs
2017-12-04 17:17:17 -06:00
parent cee3919908
commit a2447dfb42
2 changed files with 13 additions and 1 deletions

View File

@@ -16,6 +16,10 @@
.Nd locate and run an OpenRC service with the given arguments
.Sh SYNOPSIS
.Nm
.Op Fl c , -ifcrashed
.Ar service cmd
.Op Ar ...
.Nm
.Op Fl i , -ifexists
.Ar service cmd
.Op Ar ...