summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
539a00d)
svn path=/trunk/packages/invirt-remote-server/; revision=1181
# 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
#
# 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
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
+++ /dev/null
-price/root@ATHENA.MIT.EDU
-daemon/sipb-xen.mit.edu@ATHENA.MIT.EDU
--- /dev/null
+<% from invirt.config import structs as cfg %>
+daemon/${cfg.web.hostname}@${cfg.authn.0.realm}