New stuff.
authormwolson_admin <mwolson_admin@deleuze.hcoop.net>
Sat, 4 Apr 2009 19:24:07 +0000 (15:24 -0400)
committermwolson_admin <mwolson_admin@deleuze.hcoop.net>
Sat, 4 Apr 2009 19:24:07 +0000 (15:24 -0400)
check_apache [new file with mode: 0755]
quotadisplay [new file with mode: 0755]

diff --git a/check_apache b/check_apache
new file mode 100755 (executable)
index 0000000..7eceee1
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+# Pass one command-line argument: the URL to try retrieving to see if Apache is working
+
+if wget -q -t 1 -O /dev/null -T 5 $1; then
+  echo "No problem" >/dev/null
+else
+  /etc/init.d/apache2 restart
+  echo "It seemed to be down at `date`." | mail -s "Apache restarted on `hostname`" admins@hcoop.net
+fi
diff --git a/quotadisplay b/quotadisplay
new file mode 100755 (executable)
index 0000000..5c49559
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+# docelic, according to https://bugzilla.hcoop.net/show_bug.cgi?id=448
+# Turned into a script callable by users on Sat Apr  4 08:49:27 EDT 2009
+
+PATHBITS=`echo $USER | head -c 1`/`echo $USER | head -c 2`/$USER
+fs lq ~ ~/Maildir /afs/hcoop.net/common/databases/$PATHBITS
+