hello list, A new runit config scripts for RedHat7.2. System:RedHat7.2,my own custom install,base system with base development environment. 1:install daemontools #mkdir /package /command #cd /package #wget http://cr.yp.to/daemontools/daemontools-0.76.tar.gz #tar -zxpf daemontools-0.76.tar.gz #cd admin/daemontools-0.76 #package/install #killall -HUP init 2:install socklog ( if use original socklog-1.1.0,you must see http://article.gmane.org/gmane.comp.misc.pape.general/400 ) #cd /package #wget http://smarden.org/socklog/socklog-1.1.0.tar.gz #tar -zxpf socklog-1.1.0.tar.gz #cd admin/socklog-1.1.0 #patch ..< above_patch #package/install 3:install runit #cd /package #wget http://smarden.org/runit/runit-0.10.0.tar.gz #tar -zxpf runit-0.10.0.tar.g #cd admin/runit-0.10.0 #package/install 4: prepare replace init #mkdir -p /etc/runit For RedHat: #cd /etc/runit #tar -zxf redhat.20030707.tar.gz cd /etc/init.d for i in *;do [ $i == "functions" ] || [ $i == "halt" ] || [ $i == "single" ] || [ $i == "killall" ] || chkconfig $i off done edit /etc/inittab,make tty5 free, #killall -HUP init #ln -s /etc/runit/getty-5 /service/ OK,it's running. now reboot,pass init=/sbin/runit-init to the kernel. switch to tty5 when stage 2 is reached, a getty should run there, you are able to login. 5:set log use socklog Create nobody and log account if needed. #socklog-conf klog nobody log #socklog-conf unix nobody log #ln -s /etc/socklog/klog /service/socklog-klog #ln -s /etc/socklog/unix /service/socklog-unix Check if they running. 6:replace init #mv /sbin/init /sbin/init.sysv #ln -s runit-init /sbin/init #shutdown -r now Commnets: 1:run only /etc/rc.d/sysinit at stage 1 2:/etc/runit/runonce contains one time tasks started at normal mode. 3:if use run scripts listed at http://smarden.org/runit/runscripts.html, no need redirect descriptor 2 to descriptor 1 in ./run,socklog do anything for you. Of course,you can design your own log use svlogd or multilog. ex:set sshd service mkdir /etc/runit/sshd cat > /etc/runit/sshd/run <