summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2014-10-13 14:12:57 +0000
committerschwarze <schwarze@openbsd.org>2014-10-13 14:12:57 +0000
commit891bc8f4649ba066155653d807ce25d8404f27b2 (patch)
treef90f33e9d25e03930e99040570e421653c3118d8
parentDo not warn about declarations of functions returning function pointers, (diff)
downloadwireguard-openbsd-891bc8f4649ba066155653d807ce25d8404f27b2.tar.xz
wireguard-openbsd-891bc8f4649ba066155653d807ce25d8404f27b2.zip
document the "default" subcommand more precisely;
joint work with and OK by ajacoutot@
-rw-r--r--usr.sbin/rcctl/rcctl.815
1 files changed, 10 insertions, 5 deletions
diff --git a/usr.sbin/rcctl/rcctl.8 b/usr.sbin/rcctl/rcctl.8
index 01fde733725..df07c83509e 100644
--- a/usr.sbin/rcctl/rcctl.8
+++ b/usr.sbin/rcctl/rcctl.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: rcctl.8,v 1.9 2014/10/11 13:42:49 ajacoutot Exp $
+.\" $OpenBSD: rcctl.8,v 1.10 2014/10/13 14:12:57 schwarze Exp $
.\"
.\" Copyright (c) 2014 Antoine Jacoutot <ajacoutot@openbsd.org>
.\"
@@ -14,7 +14,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: October 11 2014 $
+.Dd $Mdocdate: October 13 2014 $
.Dt RCCTL 8
.Os
.Sh NAME
@@ -76,9 +76,11 @@ Without an argument, display all services and
with their values in a format compatible with
.Xr rc.conf 8 .
.It Cm default Op Ar service | daemon
-Like
-.Cm status
-but return the default values instead of the configured ones.
+For a daemon, display the flags that will be used if
+.Dq Cm enable Ar daemon Cm flags
+is called without
+.Ar arguments .
+For a base system service, display whether it is enabled by default.
.It Oo Fl df Oc Ar action daemon
Run the
.Xr rc.d 8
@@ -95,6 +97,9 @@ returns with the exit status of the
script.
.Nm Cm status
exits with 0 if the daemon or service is enabled and 1 if it is not.
+.Nm Cm default
+exits with 0 if the daemon or service is enabled by default
+and 1 if it is not.
Otherwise, the
.Nm
utility exits 0 on success, and >0 if an error occurs