Changeset 506
- Timestamp:
- 05/10/08 15:12:35 (4 months ago)
- Files:
-
- cdd-utils/trunk/debian/README.ares (modified) (1 diff)
- cdd-utils/trunk/debian/changelog (modified) (1 diff)
- cdd-utils/trunk/lib/server.sh (modified) (1 diff)
- cdd-utils/trunk/lib/suites.sh (modified) (1 diff)
- cdd-utils/trunk/lib/system.sh (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
cdd-utils/trunk/debian/README.ares
r505 r506 25 25 8) Set the host ares in /etc/hosts and the domain name as well 26 26 27 9) Configure monit mail 28 27 29 And finally reboot the machine, as all services have to be restarted. cdd-utils/trunk/debian/changelog
r505 r506 5 5 * Splitted functions in library files 6 6 * Code cleanup 7 * Idempotent ldap and nfs client scripts7 * Idempotent ldap, nfs, monit and apt scripts 8 8 9 9 -- Free Ekanayaka <free@64studio.com> Thu, 08 May 2008 21:55:32 +0200 cdd-utils/trunk/lib/server.sh
r505 r506 314 314 cfg=/etc/default/monit 315 315 if ! exists $cfg; then warning $cfg not found; return; fi 316 se d -i -e 's|^startup=0|startup=1|g'$cfg316 set_key "startup" "=" "1" $cfg 317 317 sed -i -e 's|^# CHECK_INTERVALS=.*|CHECK_INTERVALS=30|g' $cfg 318 318 319 319 cfg=/etc/monit/monitrc 320 320 if ! exists $cfg; then warning $cfg not found; return; fi 321 if ! grep -q '^include /usr/share/cdd-utils/monit/*' $cfg; then 322 echo 'include /usr/share/cdd-utils/monit/*' >> $cfg 323 fi 321 add_key "include" " " $cfg 322 set_key "include" " " "/usr/share/cdd-utils/monit/*" $cfg 324 323 } 325 324 cdd-utils/trunk/lib/suites.sh
r505 r506 22 22 cdd-config klogd 23 23 cdd-config dnsmasq 24 cdd-config backup /dev/sdb124 cdd-config monit 25 25 } 26 26 cdd-utils/trunk/lib/system.sh
r499 r506 59 59 mother=$2 60 60 list=/etc/apt/sources.list.d/$suite.list 61 if ! exists $list ; then61 if ! exists $list || ! [ -z "$mother" ]; then 62 62 echo "deb http://apt.64studio.com/$suite/stable $mother main" > $list 63 63 fi
