diff options
-rw-r--r-- | srcx/jkill.8 | 20 | ||||
-rw-r--r-- | srcx/jps.8 | 6 |
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 @@ -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 , |