X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-remote.git/blobdiff_plain/013660534d05f43174cc19e16bcdbd6a4d8d90be..b25eeefc7f95280fa6f3b0d2f7b76a49d1fe0d48:/debian/sipb-xen-remctl-auto.init diff --git a/debian/sipb-xen-remctl-auto.init b/debian/sipb-xen-remctl-auto.init index a403f42..b35f5ba 100755 --- a/debian/sipb-xen-remctl-auto.init +++ b/debian/sipb-xen-remctl-auto.init @@ -1,4 +1,13 @@ #!/bin/bash +### BEGIN INIT INFO +# Provides: sipb-xen-remctl-auto +# Required-Start: $local_fs $remote_fs +# Required-Stop: $local_fs $remote_fs +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: conserver config from invirt config for invirt host +# Description: +### END INIT INFO PACKAGE=sipb-xen-remctl-auto @@ -6,8 +15,9 @@ PACKAGE=sipb-xen-remctl-auto gen_config() { - echo "host/$(invirt-getconf remote.hostname)@$(invirt-getconf authn.0.realm)" \ - > /etc/remctl/acl/remote + for i in /etc/remctl/acl/remote + do mako-render $i.mako > $i + done } case "$1" in @@ -15,6 +25,7 @@ case "$1" in log_begin_msg "Reloading config for $PACKAGE" gen_config log_end_msg $? + /etc/init.d/openbsd-inetd start # idempotent, thankfully ;; stop) ;;