Jonatan Liljedahl wrote: > Thomas Heller wrote: >> On Wed, Aug 27, 2008 at 6:49 PM, Fábio Mierlo <[EMAIL PROTECTED]> wrote: >> >>> On Wed, Aug 27, 2008 at 1:31 PM, Fábio Mierlo <[EMAIL PROTECTED]> wrote: >>>> On Wed, Aug 27, 2008 at 11:34 AM, Lucas C. Villa Real >>>> <[EMAIL PROTECTED]> wrote: >>>>> On Wed, Aug 27, 2008 at 11:15 AM, Jonatan Liljedahl <[EMAIL PROTECTED]> >>> wrote: >>>>>> Or, let it be a directory with symlinks to the actual Tasks. The >>>>>> symlinks could be prefixed with numbers to control the order.. >>>>> This is pretty much how /etc/init.d/rc[n].d works.. >>>>> >>>> Yes, and it is pretty ugly. >>>> >>>> From the user views, what's more simple than a commented text >>>> file where you can order and choose what task you want to start >>>> at boot time. >>>> >>>> It is just BootUp anda Shutdown made simple. >>>> >>> We can simply support both and others! >>> >>> Those interested only have to send the patches ;-) >> >> I first was thinking about making BootUp and Shutdown simpler ;) >> I agree that the old sysv init is pretty ugly and very obscure ... >> >> perhaps someone should really look into initNG and/or upstart. >> Why invent the wheel twice ;) > > Here's another one: http://einit.jyujin.de/
This one seems really simple and interresting: http://www.fastboot.org/ If I understand it correctly, all that is needed is the serelc command. This can then be used directly in the Task scripts, like serelc --provide hald serelc --need dbus hald & from the manpage: >>> --provide service Tell the daemon that the parent process is starting service --unprovide service Tell the daemon that the parent process is stopping service --need service Block until the daemon reports that service's providing process has exited. The exit status of the providing process may also be relevant, see --statuschange. --statuschange pid exitstatus Tell the daemon that process pid exited with status exitstatus. While --statuschange can be called from within a boot script, generally a shell "trap" must be employed to guarantee that it is called. This usage is cumbersome, and so --statuschange is generally called by the boot scripts's parent process, commonly serel-wrap. <<< Problem is that it depends on old Glib 1.2 and the redland library, but something like this should be easy to hack together, shouldn't it? :) -- /Jonatan [ http://kymatica.com ] _______________________________________________ gobolinux-devel mailing list gobolinux-devel@lists.gobolinux.org http://lists.gobolinux.org/mailman/listinfo/gobolinux-devel