converted two of the generated config files to use mako
[invirt/packages/invirt-web.git] / debian / sipb-xen-www.init
1 #!/bin/bash
2 ### BEGIN INIT INFO
3 # Provides:          sipb-xen-www
4 # Required-Start:    $local_fs $remote_fs
5 # Required-Stop:     $local_fs $remote_fs
6 # Default-Start:     2 3 4 5
7 # Default-Stop:      0 1 6
8 # Short-Description: conserver config from invirt config for invirt host
9 # Description:
10 ### END INIT INFO 
11
12 PACKAGE=sipb-xen-www
13
14 . /lib/lsb/init-functions
15
16 gen_config()
17 {
18     mako /etc/apache2/sites-available/{ssl,svn}.mako
19 }
20
21 case "$1" in
22   start|reload|force-reload|restart)
23     log_begin_msg "Reloading config for $PACKAGE"
24     gen_config
25     log_end_msg $?
26     ;;
27   stop)
28     ;;
29   *)
30     log_success_msg "Usage: /etc/init.d/$PACKAGE {start|reload|force-reload|restart|stop}"
31     ;;
32 esac