summaryrefslogtreecommitdiff
path: root/usr.sbin/hoststatectl
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/hoststatectl')
-rw-r--r--usr.sbin/hoststatectl/hoststatectl.816
-rw-r--r--usr.sbin/hoststatectl/hoststatectl.c10
2 files changed, 13 insertions, 13 deletions
diff --git a/usr.sbin/hoststatectl/hoststatectl.8 b/usr.sbin/hoststatectl/hoststatectl.8
index d6292831ca4..cf9ec96a120 100644
--- a/usr.sbin/hoststatectl/hoststatectl.8
+++ b/usr.sbin/hoststatectl/hoststatectl.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: hoststatectl.8,v 1.5 2006/12/19 14:44:38 jmc Exp $
+.\" $OpenBSD: hoststatectl.8,v 1.6 2007/01/09 13:50:10 pyr Exp $
.\"
.\" Copyright (c) 2006 Pierre-Yves Ritschard <pyr@spootnik.org>
.\"
@@ -15,10 +15,10 @@
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
.Dd November 1, 2006
-.Dt HOSTATECTL 8
+.Dt HOSTSTATECTL 8
.Os
.Sh NAME
-.Nm hostatectl
+.Nm hoststatectl
.Nd control the host status daemon
.Sh SYNOPSIS
.Nm
@@ -28,7 +28,7 @@
The
.Nm
program controls the
-.Xr hostated 8
+.Xr hoststated 8
daemon.
.Pp
The following commands are available:
@@ -68,10 +68,10 @@ Start doing checks for all hosts that aren't individually disabled
again.
.El
.Sh FILES
-.Bl -tag -width "/var/run/hostated.sockXX" -compact
-.It /var/run/hostated.sock
+.Bl -tag -width "/var/run/hoststated.sockXX" -compact
+.It /var/run/hoststated.sock
Unix-domain socket used for communication with
-.Xr hostated 8 .
+.Xr hoststated 8 .
.El
.Sh SEE ALSO
-.Xr hostated 8
+.Xr hoststated 8
diff --git a/usr.sbin/hoststatectl/hoststatectl.c b/usr.sbin/hoststatectl/hoststatectl.c
index 90ad447aa22..5119d4e6898 100644
--- a/usr.sbin/hoststatectl/hoststatectl.c
+++ b/usr.sbin/hoststatectl/hoststatectl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hoststatectl.c,v 1.7 2007/01/09 00:45:32 deraadt Exp $ */
+/* $OpenBSD: hoststatectl.c,v 1.8 2007/01/09 13:50:10 pyr Exp $ */
/*
* Copyright (c) 2006 Pierre-Yves Ritschard <pyr@spootnik.org>
@@ -57,7 +57,7 @@ usage(void)
exit(1);
}
-/* dummy function so that hostatectl does not need libevent */
+/* dummy function so that hoststatectl does not need libevent */
void
imsg_event_add(struct imsgbuf *i)
{
@@ -78,15 +78,15 @@ main(int argc, char *argv[])
if ((res = parse(argc - 1, argv + 1)) == NULL)
exit(1);
- /* connect to hostated control socket */
+ /* connect to hoststated control socket */
if ((ctl_sock = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
err(1, "socket");
bzero(&sun, sizeof(sun));
sun.sun_family = AF_UNIX;
- strlcpy(sun.sun_path, HOSTATED_SOCKET, sizeof(sun.sun_path));
+ strlcpy(sun.sun_path, HOSTSTATED_SOCKET, sizeof(sun.sun_path));
if (connect(ctl_sock, (struct sockaddr *)&sun, sizeof(sun)) == -1)
- err(1, "connect: %s", HOSTATED_SOCKET);
+ err(1, "connect: %s", HOSTSTATED_SOCKET);
if ((ibuf = malloc(sizeof(struct imsgbuf))) == NULL)
err(1, NULL);