[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Debian init choices



On 3/2/2014 18:44, Steve Litt wrote:
> Hi all,
> 
> I was just wondering something. How much effort would it take for me,
> personally, just me, to make my Debian Stable start all its processes
> with DJB's Daemontools. I know Daemontools, I understand it, I know how
> to work with it and how to troubleshoot it. What I don't know is:
> 
> 1) How to get the kernel to pass off control to Daemontools?

init= parameter, or make /sbin/init Daemontools and Linux will boot that.

> 2) How to know which processes get run after boot?

daemontools is a collection of tools for managing UNIX services.

supervise monitors a service. It starts the service and restarts the
service if it dies. Setting up a new service is easy: all supervise
needs is a directory with a run script that runs the service. [0]

You will need the scripts of course. Might need to run them yourself or
borrow from a distro that uses daemontools (are there any?)

> 3) Can one start drivers with Daemontools?

Er, what? I suppose you can write a daemontools init script that
`insmod`s kernel driver modules.

> 4) Would there be a performance or stability cost to doing this, other
>    than boot taking longer, which I don't care about that much?

You are changing the init of your system. That is possibly one of the
most unstable things you can do to a Linux system. Expect breakage.

> 
> Please understand, I'm *not* suggesting this be incorporated in any
> Linux distribution. I'm aware that if it were such an excellent idea,
> other distros would be doing it this way already.
> 
> Speaking just for myself, and possibly doing this just for myself, I
> just find sysinit or whatever it's called, and upstart, to be a little
> too black-boxy for my taste, and from what I read, systemd won't be
> much different in that regard.
> 
> Thanks,
> 
> SteveT
> 
> Steve Litt                *  http://www.troubleshooters.com/
> Troubleshooting Training  *  Human Performance
> 
> 

Replies inline.

[0] - http://cr.yp.to/daemontools.html
-- 
staticsafe


Reply to: