Skip to content

Commit

Permalink
1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
SBell6hf authored May 27, 2022
1 parent f0404c4 commit c8adce2
Show file tree
Hide file tree
Showing 2 changed files with 133 additions and 44 deletions.
14 changes: 6 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
Restart init.

```text
WARNING: This utility has not been thoroughly tested. It could freeze the machine or panic the kernel.
Maybe it won't, but anyway, make sure you have viewed each line of its code and that you fully understand them.
Usage:
reinit [-i <newinit>] [-r <newroot> [-o <putold>]] [options] [-- init_options]
Expand All @@ -15,11 +11,13 @@ Options:
-i, --newinit the file to execute as the new init; default: current init
-r, --newroot the mountpoint to use as new root; default: /
-o, --putold the path to mount the old root if --newroot is set; default: /._tmp_reinit/putold
-b, --bbinit use busybox as the new init; you'll need to spicify an applet in init_options
-b, --bbinit use busybox as the new init
-k, --nokill do not kill old processes; PIDs of old processes will be stored in environment variable $oldproc
-s, --nostop do not stop old processes (implies --nokill); may make the kernel panic when used with -r
-f, --keepfd do not close fds for the new init
-k, --nokill do not kill old processes; PIDs of old processes will be stored in environment variable $oldproc
-s, --nostop do not stop old processes (implies --nokill); may make the kernel panic when used with -r
-f, --keepfd do not close fds for the new init
-u, --umount umount /proc, /dev, /sys, /run, /tmp (default when newroot == / && !nostop)
--no-umount do not umount /proc, /dev, /sys, /run, /tmp (default)
-h, --help display this help
-V, --version display version
Expand Down
Loading

0 comments on commit c8adce2

Please sign in to comment.