fix our copyright files
[invirt/packages/invirt-remote.git] / debian / invirt-remote-server.init
index 0af248c..d67e5bd 100755 (executable)
@@ -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
 
+gen_config()
+{
+       for i in /etc/remctl/acl/web; do
+               mako-render $i.mako > $i
+       done
+}
+
 #
 # 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
+       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