3 # Provides: invirt-console-host
4 # Required-Start: $local_fs $remote_fs
5 # Required-Stop: $local_fs $remote_fs
6 # Default-Start: 2 3 4 5
8 # Short-Description: conserver config from invirt-config for Invirt host
12 PACKAGE=invirt-console-host
13 PARENTPACKAGE=conserver-server
15 dpkg -s "$PACKAGE" >/dev/null 2>/dev/null || exit 0
18 . /lib/lsb/init-functions
22 for i in /etc/conserver/invirt-genconfig.cf
23 do mako-render $i.mako > $i
28 start|reload|force-reload|restart)
29 log_begin_msg "Reloading config for $PACKAGE"
32 /etc/init.d/"$PARENTPACKAGE" "$1"
35 /etc/init.d/"$PARENTPACKAGE" "$1"
38 log_success_msg "Usage: /etc/init.d/$PACKAGE {start|reload|force-reload|restart|stop}"