supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
* A RedHat config scripts for runit,again
@ 2003-07-07 11:07 Hleil Liu
  0 siblings, 0 replies; only message in thread
From: Hleil Liu @ 2003-07-07 11:07 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 2325 bytes --]

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 <<EOF
 
#!/bin/sh
exec sshd -D
 
EOF
 
chmod 755 /etc/runit/sshd/run
ln -s /etc/runit/sshd /service/
 
that's ok.sshd log into /var/log/socklog/auth and /var/log/socklog/main.
 

Is that right?Wish for your advice.


Best Regard.


[-- Attachment #2: redhat-20030707.tar.gz --]
[-- Type: application/x-gzip, Size: 779 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-07-07 11:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-07 11:07 A RedHat config scripts for runit,again Hleil Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).