Standardize on "Invirt project" in invirt-remote-server
[invirt/packages/invirt-remote.git] / debian / invirt-remote-server.init
index 0af248c..605abc6 100755 (executable)
@@ -9,7 +9,7 @@
 # Description:       
 ### END INIT INFO
 
 # Description:       
 ### END INIT INFO
 
-# Author: SIPB Invirt Project <invirt@mit.edu>
+# Author: Invirt project <invirt@mit.edu>
 
 # Do NOT "set -e"
 
 
 # Do NOT "set -e"
 
@@ -35,6 +35,13 @@ SCRIPTNAME=/etc/init.d/$NAME
 # Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
 . /lib/lsb/init-functions
 
 # 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
 #
 #
 # Function that starts the daemon/service
 #
@@ -44,6 +51,7 @@ do_start()
        #   0 if daemon has been started
        #   1 if daemon was already running
        #   2 if daemon could not be started
        #   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
        modprobe fuse
        daemon --running -n $NAME && return 1
        daemon -r -O daemon.info -E daemon.err -n $NAME -U $DAEMON $DAEMON_ARGS || return 2