troglobit / finit

Fast init for Linux. Cookies included
https://troglobit.com/projects/finit/
MIT License
633 stars 63 forks source link

Redirect stdin to /dev/null by default #120

Closed troglobit closed 4 years ago

troglobit commented 5 years ago

Finit currently does nothing with STDIN of processes it starts. This means a faulty script can steal the console and cause interesting problems.

systemd has this configurable, also for stdout/stderr: https://www.freedesktop.org/software/systemd/man/systemd.exec.html#Logging%20and%20Standard%20Input/Output