Le 20/10/2014 19:52, John Albietz a écrit :
> - With nearly all of my services, I create enable scripts that check for,
> and if necessary set up directories and perhaps even default passwords or
> databases. And I haven't found an elegant way yet to integrate this into
> runit. I think it would be useful to separate out a command for 'enable'
> that would run successfully only once for a service.
runit, like other supervision frameworks, doesn't have a notion of machine
state: its point is to supervise processes, not to perform machine state
management.
This is exactly what supervision frameworks are currently lacking when
compared to popular init systems: a vision of the global machine state
involving more than processes. We've discussed about it before, check the
recent list archives.
A summary of my position is that machine management can be done in a right
and elegant way, but should not be integrated *into* supervision frameworks
- it should be implemented *above* them.
--
Laurent
Received on Tue Oct 21 2014 - 09:08:10 UTC