CmdID

CmdID / Commands

oneit

Simple init program that runs a single supplied command line with a controlling tty (so CTRL-C can kill it). toybox

On Linux

Opens CmdID with your command. It is read in your browser and sent nowhere.

Linux

from the toybox, 0BSD

Simple init program that runs a single supplied command line with a controlling tty (so CTRL-C can kill it). (Blocking writes, child must read to avoid eventual deadlock.) Spawns a single child process (because PID 1 has signals blocked) in its own session, reaps zombies until the child exits, then reboots the system (or powers off with -p, or restarts the child with -r). Responds to SIGUSR1 by halting the system, SIGUSR2 by powering off, and SIGTERM or SIGINT reboot.

oneit [-prn3] [-c CONSOLE] [COMMAND...]
-c CONSOLEWhich console device to use (/dev/console doesn't do CTRL-C, etc)
-pPower off instead of rebooting when command exits
-rRestart child when it exits
-nNo reboot, just relaunch command line
-3Write 32 bit PID of each exiting reparented process to fd 3 of child