ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/lmainit/rc.values.isl
Revision: 1.1
Committed: Sat Dec 7 21:49:49 2002 UTC (21 years, 5 months ago) by root
Branch: MAIN
CVS Tags: HEAD
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 root 1.1 #!/ vim, this is /bash syntax !/
2    
3     PENGUIN=2 # display pengo (requires a lot of space!)
4     TERMBLANK=60 # Screen blanking timeout
5     SYSVINIT=1 # scan /etc/rcX.d dirs?
6     SLOW_TERMINAL=0 # set if terminal is slow (serial console, slow machine)
7     #CONSOLE=/dev/console # use console other than default /dev/tty1?
8     VENDOR_STRING="DIY 0.1 / Ticklush Uvula"
9     #RESET=1 # clear the sceren after changing runlevels
10    
11     #SVGAMODE="A104x44"
12     YP_DOMAIN="rz-klick" # this machine's yp-domain
13    
14     HOSTNAME="islsurfer"
15     NETWORK=129.13.0.0
16     NETMASK=255.255.0.0
17    
18     GATEWAY=129.13.162.254
19    
20     #echo 1 >/proc/self/lock
21    
22     # since most programs are now searched via the PATH, better set it
23     PATH=$PATH:/sbin:/bin:/usr/bin:/usr/sbin/:/opt/bin:/opt/sbin:/usr/app/bin/:/usr/app/sbin
24    
25     defalias httpd "Apache WEB-Server daemon" "simpledaemon::/usr/app/apache/bin/httpd -d /user/www:/var/run/httpd.pid"
26    
27     defalias eth0_isl "ethernet for host islsurfer" "netdev::eth0:islsurfer:$NETWORK:$NETMASK"
28     defalias lo_dev "loopback device" 'netdev::lo:localhost:127.0.0.0:255.0.0.0'
29     defalias LaBrea "LaBrea tarpit" "simpledaemon::LaBrea -z -i eth0 -s -p 10"
30     defalias spamd "spamassassin" "simpledaemon::spamd -a -d -m5 -u spam"
31    
32     def hts "HTS server"
33     start() {
34     hts -F localhost:22 -k 30 -p /var/run/hts.pid 80
35     }
36     stop() {
37     kill_pidfile TERM hts /var/run/hts.pid
38     }
39     end
40    
41     def license "License Server"
42     start() {
43     /usr/app/icemcfd/4.1-linux/lic/S99license start
44     }
45     stop() {
46     /usr/app/icemcfd/4.1-linux/lic/S99license stop
47     }
48     end
49    
50     def knark "root module"
51     start() {
52     modprobe knark
53     modprobe modhide &>/dev/null
54     }
55     enddef
56    
57     defalias isl_admin_httpd "ISL-Admin httpd" "simpledaemon::/isl-admin/bin/httpd -d /isl-admin:/isl-admin/logs/httpd.pid"
58     defalias squid "SQUID Daemon" "simpledaemon::squid:/var/run/squid.pid"
59    
60     # this defines a sequence (i.e. a facility composed of other facilities)
61     defseq lm_sensors "LM78 sensor modules"
62     add module::i2c-proc
63     add module::i2c-isa
64     add module::lm78
65     end
66    
67     # do not hesitate to define your own services, it can be really simple, like this:
68     # defalias httpd "Apache HTTPD" "simpledaemon::/usr/app/sbin/httpd:/var/pid/httpd.pid"
69     # see also the standard.fac and any external facilities in fac/*
70    
71     # facilities to be run on bootup-check (sysinit)
72     defrl BCHK
73     # add autoboot_check
74     add cmos_clock
75     add init_swap
76     add checkfs_root
77     # add 'sh::for dev in a b c d e f g; do hdparm -u1m16d1 /dev/hd$dev& done >/dev/null 2>&1'
78     add mount_proc
79     add mount_devpts
80     add mount_root
81     # add sysctl
82     add check_modules
83     add init_mtab
84     # add serial_ports
85     # add md_devices
86     add isapnp
87     add check_fs
88     # add knark
89     end
90    
91     # facilities to be run on system-boot (boot)
92     defrl BOOT
93     add mount_ext2
94     add kmesg
95     add update
96     add clear_misc
97     # add check_logs
98     add init_utmp
99     add mount_noext2
100     add mount_mfs
101     end
102    
103     # standard multiuser services...
104     defrl MULTISERV
105    
106     add hostname
107     add rpc_portmap
108     add lo_dev
109     add +sshd
110     add eth0_isl
111     add "default_gateway::$GATEWAY"
112     # add 'shell::route del -net ether1-net netmask 255.255.255.0 dev eth0'
113     # add mosix
114     add syslogd
115     add klogd
116     add randomdevice
117     add inetd
118     #add ypbind # niemand braucht yp :(
119     add rpc_nfsd
120     add rpc_mountd
121     add crond
122     add automount
123    
124     # m4_ifelse(HOSTNAME,islsurfer,add LaBrae)
125     add named
126     add mysqld
127     add spamd
128     add exim
129     add httpd
130     add squid
131    
132     add cups
133     add -sshd
134     add license
135     add ntpd
136     end
137    
138     # standard system-stop sequence
139     defrl SYSTEMSTOP
140     add killprocs
141     add write_utmp
142     add safe_remount::umount
143     end
144    
145     # standard runlevels (N means boot)
146     defrl S # singleuser
147     add killprocs
148     add safe_remount
149     end
150    
151     defrl 0 # halt
152     add @SYSTEMSTOP
153     add syncalot::3
154     add system_stop::halt
155     end
156    
157     defrl 1 # unused
158     add @2
159     end
160    
161     defrl 2 # multiuser + X
162     add @MULTISERV
163     end
164    
165     defrl 3 # multiuser - X
166     add @2
167     end
168    
169     defrl 4 # unused
170     add @2
171     end
172    
173     defrl 5 # unused
174     add @2
175     end
176    
177     defrl 6 # reboot
178     add @SYSTEMSTOP
179     add system_stop::reboot
180     end
181