As the others here with brains have had a chance to sleep on this,
what's the current thinking?
As I understand it, there are 2 decisions to make:
1) How to decide if a $daemon is a script as opposed to a binary
(*) file(1)
(*) dd(d)
(*) sed(1)
Could stat(1) be tasked to switch case on file attributes (e.g: size)?
2) Whether to check if a script's interpreter is valid
http://openbsd.7691.n7.nabble.com/etc-rc-d-rc-subr-prefix-pexp-with-script-interpretor-path-td234439.html
Yes/No/Other?
--
Craig Skinner | http://twitter.com/Craig_Skinner | http://linkd.in/yGqkv7