summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2004-05-19 17:52:12 +0000
committerStef Walter <stef@memberwebs.com>2004-05-19 17:52:12 +0000
commit2f8b82b1e2bf3c05ef49c9980b24be029c322b1b (patch)
tree4ac9a8b9bfa4cd7ea7267a16e1c3e2f4f03cb05a
parent16a07b3e85b2e8994350583b3a74b79e2680f4f5 (diff)
Documentation and line ending fixes
-rw-r--r--srcx/jkill.820
-rw-r--r--srcx/jps.86
2 files changed, 25 insertions, 1 deletions
diff --git a/srcx/jkill.8 b/srcx/jkill.8
index 84f73ac..71f793b 100644
--- a/srcx/jkill.8
+++ b/srcx/jkill.8
@@ -53,15 +53,27 @@
.Op Fl fqv
.Op Fl t Ar timeout
.Ar jail ...
+.Nm halt
+.Nm reboot
.Sh DESCRIPTION
The
-.Nm
+.Nm jkill
utility stops one or more jails in an orderly fashion. It calls the
shutdown scripts inside the jail and then kills all remaining processes.
When used with the
.Fl r
option it can also restart the jail.
.Pp
+.Nm
+can also be run from within a jail, to shutdown or restart the jail.
+Copy the
+.Nm
+binary into your jails and rename it
+.Nm halt
+and/or
+.Nm reboot
+as a hard link. Each of these commands will then perform their respective
+actions in the jail.
.Sh OPTIONS
.Bl -tag -width ".Fl u Ar timeout"
.It Fl f
@@ -98,6 +110,12 @@ jail in order to prevent unwanted information from leaking into the
jail.
.Pp
Both startup and shutdown are logged to the jail's console if it exists.
+.Pp
+.Nm
+needs a valid
+.Pa /dev/null
+device in the jail. If it doesn't exit for some reason it is automatically
+created.
.Sh FILES
.Pa /etc/rc
.Pa /etc/rc.shutdown
diff --git a/srcx/jps.8 b/srcx/jps.8
index e18d8b6..fac8e58 100644
--- a/srcx/jps.8
+++ b/srcx/jps.8
@@ -81,6 +81,12 @@ The environment is purged properly before running
.Xr ps 1
in the jail in order to prevent unwanted information from
leaking into the jail.
+.Pp
+.Nm
+needs a valid
+.Pa /dev/null
+device in the jail. If it doesn't exit for some reason it is automatically
+created.
.Sh SEE ALSO
.Xr jail 8 ,
.Xr jails 8 ,