Re:Writing my own init with Go
by tronje on Tuesday February 09, 2016 @11:39AM
(#11066524)
Since init is the first process that runs, you can't use an interpreted language like ruby (since the interpreter would have to run first, which is impossible if your program itself is init). Maybe there's a Ruby-compiler out there somewhere, but as-is Ruby would be impossible.
[ Parent
| on HN ]
> Since init is the first process that runs, you can't use an interpreted language like ruby
Sure you can, you can even use a shell script: https://wiki.gentoo.org/wiki/Custom_Initramfs#Init
Re:Writing my own init with Go
by justinsaccount on Tuesday February 09, 2016 @11:51AM
(#11066630)
This is simply not true. It's not impossible and it works exactly like any program would.
No it wouldn't. Either hack a quick shim to start the interpreter or rely on the operating system to figure out how to run a script. The #! is there for a reason.