Index: trunk/debs/wikimedia-base/debian/control |
— | — | @@ -17,3 +17,4 @@ |
18 | 18 | * Finds out which Wikimedia cluster the host belongs to |
19 | 19 | * Sets APT package pinning for Wikimedia packages |
20 | 20 | * Sets up NTP |
| 21 | + * Set up SMART disk monitoring |
Index: trunk/debs/wikimedia-base/debian/postinst |
— | — | @@ -93,6 +93,13 @@ |
94 | 94 | update-alternatives --install /usr/bin/editor editor /usr/bin/vim 75 \ |
95 | 95 | --slave /usr/share/man/man1/editor.1.gz editor.1.gz \ |
96 | 96 | /usr/share/man/man1/vim.1.gz |
| 97 | + |
| 98 | + # Enable smartd |
| 99 | + if ! [ -f /var/run/smartd.pid ] || ! kill -0 $(cat /var/run/smartd.pid) |
| 100 | + then |
| 101 | + sed -i -e '/^#start_smartd=yes/s/^#//' /etc/default/smartmontools |
| 102 | + invoke-rc.d smartmontools start |
| 103 | + fi |
97 | 104 | ;; |
98 | 105 | |
99 | 106 | abort-upgrade|abort-remove|abort-deconfigure) |
Index: trunk/debs/wikimedia-base/debian/changelog |
— | — | @@ -1,3 +1,9 @@ |
| 2 | +wikimedia-base (0.07) dapper; urgency=low |
| 3 | + |
| 4 | + * Enable smartd disk monitoring |
| 5 | + |
| 6 | + -- Mark Bergsma <mark@wikimedia.org> Sat, 14 Oct 2006 22:15:02 +0000 |
| 7 | + |
2 | 8 | wikimedia-base (0.06) dapper; urgency=low |
3 | 9 | |
4 | 10 | * Force the default editor to be vim, regardless of whether we |