Rubyx init system

A

Andrew Walrond

With bitkeeper, just do

bk clone bk://ftp.rubyx.org/rubyx
cd rubyx
bk co

It will only take 30secs - honest! The rubyx system consists only of three
small scripts.

The file you want is 'init', but you'll also need to copy strfile.rb to your
site_ruby directory
It is installed by copying it to sbin and then setting up some symbolic links:

ln -sf init shutdown
ln -sf init reboot
ln -sf init die
ln -sf init start
ln -sf init stop
ln -sf init restart
ln -sf init reload

The one small script does everything ;)
There are no runlevels as with conventional init systems; Just a set of
services which are associated with want and need attributes.

For example, the command
restart network
would stop all services in the dependancy tree above the network service in
top down order, then restart them all from the bottom up.

All actions are logged, and all daemons are monitored and restarted incase
they die.

But...

It's very rubyx oriented. It will take some major surgery to make it work with
debian/lunar or whatever

Andrew Walrond
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,899
Latest member
RodneyMcAu

Latest Threads

Top