Skip to main content
Welcome guest. | Register | Login | Post

crazy idea: screen based init system?

1 reply [Last post]
tbuitenh's picture
Offline
Joined: 2005-12-21

You may have heard of upstart, the new event based init system. I think something similar can be created with scripts that look like this:

filename: /etc/si.d/some_event

#!/bin/bash

(/etc/init.d/some_daemon start && screen /etc/si.d/some_daemon_started) &
(/etc/init.d/other_daemon start && screen /etc/si.d/other_daemon_started) &
screen /etc/si.d/some_event_finished

Or something similar but with some bookkeeping if you want dependency based init instead of event based.

Apart from the parallelism, this approach is nice because the output of different starting daemons doesn't get mixed up (and you can even page through it). I think it is even possible to have a screen containing top stay on top (confusing sentence!), so you get a nice overview of daemons appearing...

What do you think?

a thing's picture
Offline
Joined: 2005-12-20
brilliant

This could make debugging a lot easier. Very nice idea.

Contact the Upstart developers about this.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.