# refresh volume location cache (takes ~2hrs otherwise)
execute_on_all_machines fs checkvolumes
-}
\ No newline at end of file
+}
+
+#
+# webserver
+#
+
+function create_fcgi_wrapper () {
+ # note: might want to move this to domtool-adduser
+ local wrapper="/afs/hcoop.net/common/httpd/fastcgi/${PATHBITS}/${NEWUSER}-wrapper-wrapper"
+ mkdir -p /afs/hcoop.net/common/httpd/fastcgi/${PATHBITS}
+ cat > $wrapper <<EOF
+#!/bin/bash
+
+exec k5start -qtUf /etc/keytabs/user.daemon/${NEWUSER} -- $@
+EOF
+
+ chmod +x $wrapper
+ chown $NEWUSER:nogroup $wrapper
+}