X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-remote.git/blobdiff_plain/227cb65ae3d4b0fd6636700595df6f00b18d4f37..56aed123880d0d96fd6a0e01e6946302d3b128dd:/debian/invirt-remote-server.init?ds=sidebyside diff --git a/debian/invirt-remote-server.init b/debian/invirt-remote-server.init index 0af248c..605abc6 100755 --- a/debian/invirt-remote-server.init +++ b/debian/invirt-remote-server.init @@ -9,7 +9,7 @@ # Description: ### END INIT INFO -# Author: SIPB Invirt Project +# Author: Invirt project # 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 +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