shorten sipb-xen-www initscript with new library
authorGreg Price <price@mit.edu>
Fri, 24 Oct 2008 11:27:43 +0000 (07:27 -0400)
committerGreg Price <price@mit.edu>
Fri, 24 Oct 2008 11:27:43 +0000 (07:27 -0400)
svn path=/trunk/packages/sipb-xen-www/; revision=1215

debian/changelog
debian/control
debian/sipb-xen-www.init

index e510062..2f2e539 100644 (file)
@@ -1,3 +1,10 @@
+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
 
   * Use /etc/invirt/keytab instead of a separate keytab for apache
 sipb-xen-www (3.15) unstable; urgency=low
 
   * Use /etc/invirt/keytab instead of a separate keytab for apache
index 7d018bc..714343f 100644 (file)
@@ -7,6 +7,6 @@ Standards-Version: 3.7.2
 
 Package: sipb-xen-www
 Architecture: all
 
 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
  libapache2-svn, postfix, subversion, zephyr-clients
 Description: Install the sipb-xen-dev website
index 20bc191..f13ab6d 100755 (executable)
@@ -5,32 +5,13 @@
 # Required-Stop:     $local_fs $remote_fs
 # Default-Start:     2 3 4 5
 # Default-Stop:      0 1 6
 # 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
+# Short-Description: sipb-xen web server
 # Description:
 ### END INIT INFO 
 
 PACKAGE=sipb-xen-www
 # 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"