#!/ vim, this is /bash syntax !/ PENGUIN=2 # display pengo (requires a lot of space!) TERMBLANK=60 # Screen blanking timeout SYSVINIT=0 # scan /etc/rcX.d dirs? SLOW_TERMINAL=0 # set if terminal is slow (serial console, slow machine) #CONSOLE=/dev/console # use console other than default /dev/tty1? VENDOR_STRING="DIY 0.1 / Ticklish Uvula" #RESET=1 # clear the sceren after changing runlevels #SVGAMODE="A104x44" #YP_DOMAIN="laendle" # this machine's yp-domain HOSTNAME="cerebro" # this machine's hostname # since most programs are now searched via the PATH, better set it PATH=$PATH:/usr/app/bin:/usr/app/sbin:/opt/bin:/opt/sbin test -e /proc/self/goto && echo 1 >/proc/self/lock defalias eth0_cerebro "ethernet cerebro" 'netdev::eth0:10.0.0.1:10.0.0.0:255.255.255.0' defalias eth1_cerebro "ethernet cerebro" 'netdev::eth1:10.0.1.1:10.0.1.0:255.255.255.0' defalias lo_dev "loopback device" 'netdev::lo:localhost:loopback-net:255.0.0.0' defalias dummy0_dev "dummy device" "netdev::dummy0:$HOSTNAME:$HOSTNAME" # this defines a sequence (i.e. a facility composed of other facilities) defseq lm_sensors "LM78 sensor modules" add module::i2c-proc add module::i2c-isa add module::lm78 end def "tunnel_end" "129.13.162.93" start() { /sbin/ifconfig eth0:1 129.13.162.93 netmask 255.255.255.255 /sbin/ifconfig eth0:2 212.172.23.18 netmask 255.255.255.255 } enddef # do not hesitate to define your own services, it can be really simple, like this: #defalias apache "Apache HTTPD" "simpledaemon::/usr/app/sbin/httpd:/var/pid/httpd.pid" defalias thttpd "HTTPD" "simpledaemon::/usr/www/sbin/thttpd -C /usr/www/conf/thttpd.conf:/var/run/thttpd.pid" # see also the standard.fac and any external facilities in fac/* # facilities to be run on bootup-check (sysinit) defrl BCHK add sysinfo add autoboot_check # i keep W 1 because power surges are not that common #add 'hdparm::WD/4G : -q -k 1 -q -S 90 -q -W 1 -q -c 1 -q -d 1 -q -m 16 -q -u 1 /dev/hda' add 'hdparm::WD/10G : -q -k 1 -q -S 240 -q -W 1 -q -c 1 -q -d 1 -q -m 16 -q -u 1 /dev/hda'; add 'hdparm::Maxtor/80G:-q -K 1 -q -k 1 -q -S 150 -q -W 1 -q -c 1 -q -d 1 -q -m 16 -q -u 1 /dev/hdb' add 'hdparm::Maxtor/60G:-q -K 1 -q -k 1 -q -S 150 -q -W 1 -q -c 1 -q -d 1 -q -m 16 -q -u 1 /dev/hdc' add 'hdparm::Maxtor/40G:-q -K 1 -q -k 1 -q -S 150 -q -W 1 -q -c 1 -q -d 1 -q -m 16 -q -u 1 /dev/hdd' add cmos_clock add init_swap add checkfs_root add mount_proc add mount_devpts add sysctl add mount_root add check_modules add init_mtab add serial_ports add md_devices add 'hdparm::Readahead on md0:-q -a 16 /dev/md0' add @lm_sensors end # facilities to be run on system-boot (boot) defrl BOOT add kmesg add update add mount_ext2 add clear_misc add check_logs add init_utmp add mount_noext2 add mount_mfs end # standard multiuser services... defrl MULTISERV add randomdevice add hostname #add module::sb add rpc_portmap add lo_dev add syslogd add klogd add mysqld add inetd add rpc_mountd add rpc_nfsd add +sshd add lircd add thttpd add automountd add crond add fw add eth0_cerebro add tunnel_end add default_gateway::doom add -sshd add ntpd add mosix add httpd #add module::snd-card-emu10k1 end # standard system-stop sequence defrl SYSTEMSTOP add killprocs add write_utmp add safe_remount::umount add 'shell::hdparm -q -W 0 /dev/hd?' end # standard runlevels (N means after boot) defrl S # singleuser add killprocs add safe_remount end defrl 0 # halt add @SYSTEMSTOP add syncalot::3 add system_stop::halt end defrl 1 # unused add @2 end defrl 2 # multiuser + X add @MULTISERV end defrl 3 # multiuser - X add @2 end defrl 4 # unused add @2 end defrl 5 # unused add @2 end defrl 6 # reboot add @SYSTEMSTOP add system_stop::reboot end