Index: /trunk/packages/sipb-xen-www/debian/changelog
===================================================================
--- /trunk/packages/sipb-xen-www/debian/changelog	(revision 1214)
+++ /trunk/packages/sipb-xen-www/debian/changelog	(revision 1215)
@@ -1,2 +1,9 @@
+sipb-xen-www (3.16) unstable; urgency=low
+
+  * Shorten initscript with spiffy new library from sipb-xen-base
+  * Fix comment copy-paste error in initscript, now that it's mostly comments
+
+ -- Greg Price <price@mit.edu>  Fri, 24 Oct 2008 07:19:13 -0400
+
 sipb-xen-www (3.15) unstable; urgency=low
 
Index: /trunk/packages/sipb-xen-www/debian/control
===================================================================
--- /trunk/packages/sipb-xen-www/debian/control	(revision 1214)
+++ /trunk/packages/sipb-xen-www/debian/control	(revision 1215)
@@ -8,5 +8,5 @@
 Package: sipb-xen-www
 Architecture: all
-Depends: ${misc:Depends}, libapache2-mod-fcgid, python-flup, python-cheetah, python-simplejson, sipb-xen-database-common, sipb-xen-vnc-client, kstart, debathena-afs-config,
+Depends: ${misc:Depends}, libapache2-mod-fcgid, python-flup, python-cheetah, python-simplejson, sipb-xen-database-common, sipb-xen-vnc-client, kstart, debathena-afs-config, sipb-xen-base,
  libapache2-svn, postfix, subversion, zephyr-clients
 Description: Install the sipb-xen-dev website
Index: /trunk/packages/sipb-xen-www/debian/sipb-xen-www.init
===================================================================
--- /trunk/packages/sipb-xen-www/debian/sipb-xen-www.init	(revision 1214)
+++ /trunk/packages/sipb-xen-www/debian/sipb-xen-www.init	(revision 1215)
@@ -6,31 +6,12 @@
 # Default-Start:     2 3 4 5
 # Default-Stop:      0 1 6
-# Short-Description: conserver config from invirt config for invirt host
+# Short-Description: sipb-xen web server
 # Description:
 ### END INIT INFO 
 
 PACKAGE=sipb-xen-www
+PARENTPACKAGE=apache2
+GEN_FILES=(/etc/apache2/sites-available/{ssl,svn})
 
-. /lib/lsb/init-functions
-
-gen_config()
-{
-  for i in /etc/apache2/sites-available/{ssl,svn}
-  do mako-render $i.mako > $i
-  done
-}
-
-case "$1" in
-  start|reload|force-reload|restart)
-    log_begin_msg "Reloading config for $PACKAGE"
-    gen_config
-    log_end_msg $?
-    /etc/init.d/apache2 "$1"
-    ;;
-  stop)
-    /etc/init.d/apache2 "$1"
-    ;;
-  *)
-    log_success_msg "Usage: /etc/init.d/$PACKAGE {start|reload|force-reload|restart|stop}"
-    ;;
-esac
+. /lib/init/config-init.sh
+config_init "$1"
