r17024 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r17023‎ | r17024 | r17025 >
Date:16:26, 15 October 2006
Author:mark
Status:old
Tags:
Comment:
wikimedia-base (0.08) dapper; urgency=low

* Set amaryllis as NTP server for yaseo, as all others are firewalled off
* Do not restart ntpd, as it hangs the upgrade process for some reason
* Ignore failed smartd starts, as they are normal on systems without
(recognized) disks, e.g. SATA disks
Modified paths:
  • /trunk/debs/wikimedia-base/debian/changelog (modified) (history)
  • /trunk/debs/wikimedia-base/debian/postinst (modified) (history)

Diff [purge]

Index: trunk/debs/wikimedia-base/debian/postinst
@@ -18,6 +18,7 @@
1919 #
2020
2121 . /usr/share/debconf/confmodule
 22+. /lib/lsb/init-functions
2223
2324 case "$1" in
2425 configure)
@@ -55,11 +56,14 @@
5657 pmtpa)
5758 NTP_SERVER=zwinger.wikimedia.org
5859 ;;
 60+ yaseo)
 61+ NTP_SERVER=amaryllis.yaseo.wikimedia.org
 62+ ;;
5963 esac
6064 if [ -n "$NTP_SERVER" ] && ! grep -q "^server $NTP_SERVER" /etc/ntp.conf
6165 then
6266 sed -i -e "/^server ntp\.ubuntu\.com/s/ntp\.ubuntu\.com/$NTP_SERVER/" /etc/ntp.conf
63 - invoke-rc.d ntp-server restart
 67+ log_warning_msg "New NTP server set, please restart ntpd manually!"
6468 fi
6569
6670 # Optimize TCP
@@ -98,7 +102,7 @@
99103 if ! [ -f /var/run/smartd.pid ] || ! kill -0 $(cat /var/run/smartd.pid)
100104 then
101105 sed -i -e '/^#start_smartd=yes/s/^#//' /etc/default/smartmontools
102 - invoke-rc.d smartmontools start
 106+ invoke-rc.d smartmontools start || true
103107 fi
104108 ;;
105109
Index: trunk/debs/wikimedia-base/debian/changelog
@@ -1,3 +1,12 @@
 2+wikimedia-base (0.08) dapper; urgency=low
 3+
 4+ * Set amaryllis as NTP server for yaseo, as all others are firewalled off
 5+ * Do not restart ntpd, as it hangs the upgrade process for some reason
 6+ * Ignore failed smartd starts, as they are normal on systems without
 7+ (recognized) disks, e.g. SATA disks
 8+
 9+ -- Mark Bergsma <mark@wikimedia.org> Sun, 15 Oct 2006 15:45:29 +0000
 10+
211 wikimedia-base (0.07) dapper; urgency=low
312
413 * Enable smartd disk monitoring