On Jan 1, 2015 10:27 PM, "Rob Landley" <[email protected]> wrote: > > On 01/01/2015 12:03 PM, stephen Turner wrote: > > > > On Jan 1, 2015 12:02 PM, "Rob Landley" <[email protected] > > <mailto:[email protected]>> wrote: > >> > >> On 01/01/15 08:35, stephen Turner wrote: > >> > while doing some searches on scripting i was reminded about "service" > >> > and noticed it wasn't in toybox. Is this a oversight or not in intended > >> > feature/possible post 1.0. > >> > >> $ man service > >> > >> NAME > >> service - run a System V init script > >> > >> ... > >> DESCRIPTION > >> service runs a System V init script or upstart job in as > > predictable > >> environment as possible, removing most environment variables > > and with > >> current working directory set to /. > >> > >> You mean that? > >> > >> Rob > > > > Yea that would be it. I havent grabbed the latest toybox so I wouldnt > > know if its already in it but a quich check of the website didnt have it > > listed. If its not a planned feature thats fine just wanted to know what > > the plan was for it. > > Didn't have a plan. First I've noticed it, really. I take it that's a > thing you need? (Is there any sort of standard for it? It sounds like > it's basically a shell script built around env -i...) > > Ah, the ubuntu version _is_ a shell script built around env -i, the > heart of which is: > > cd / > exec env -i LANG="$LANG" PATH="$PATH" TERM="$TERM" \ > "$SERVICEDIR/$SERVICE" ${ACTION} ${OPTIONS} > > Rob
Yea, this is probobly one of those things best left to the individual to supply im guessing. Short of people running a full system I dont imagine there will be as much need for starting and stoping daemons. Addmittently I asked before thinking with this one.
_______________________________________________ Toybox mailing list [email protected] http://lists.landley.net/listinfo.cgi/toybox-landley.net
