# Description:
### END INIT INFO
-# Author: SIPB Invirt Project <invirt@mit.edu>
+# Author: Invirt project <invirt@mit.edu>
# Do NOT "set -e"
# Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
. /lib/lsb/init-functions
+gen_config()
+{
+ for i in /etc/remctl/acl/web; do
+ mako-render $i.mako > $i
+ done
+}
+
#
# Function that starts the daemon/service
#
# 0 if daemon has been started
# 1 if daemon was already running
# 2 if daemon could not be started
+ gen_config
modprobe fuse
daemon --running -n $NAME && return 1
daemon -r -O daemon.info -E daemon.err -n $NAME -U $DAEMON $DAEMON_ARGS || return 2