Changeset 1215 for trunk


Ignore:
Timestamp:
Oct 24, 2008, 7:27:43 AM (15 years ago)
Author:
price
Message:

shorten sipb-xen-www initscript with new library

Location:
trunk/packages/sipb-xen-www/debian
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/sipb-xen-www/debian/changelog

    r1145 r1215  
     1sipb-xen-www (3.16) unstable; urgency=low
     2
     3  * Shorten initscript with spiffy new library from sipb-xen-base
     4  * Fix comment copy-paste error in initscript, now that it's mostly comments
     5
     6 -- Greg Price <price@mit.edu>  Fri, 24 Oct 2008 07:19:13 -0400
     7
    18sipb-xen-www (3.15) unstable; urgency=low
    29
  • trunk/packages/sipb-xen-www/debian/control

    r1022 r1215  
    88Package: sipb-xen-www
    99Architecture: all
    10 Depends: ${misc:Depends}, libapache2-mod-fcgid, python-flup, python-cheetah, python-simplejson, sipb-xen-database-common, sipb-xen-vnc-client, kstart, debathena-afs-config,
     10Depends: ${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,
    1111 libapache2-svn, postfix, subversion, zephyr-clients
    1212Description: Install the sipb-xen-dev website
  • trunk/packages/sipb-xen-www/debian/sipb-xen-www.init

    r1051 r1215  
    66# Default-Start:     2 3 4 5
    77# Default-Stop:      0 1 6
    8 # Short-Description: conserver config from invirt config for invirt host
     8# Short-Description: sipb-xen web server
    99# Description:
    1010### END INIT INFO
    1111
    1212PACKAGE=sipb-xen-www
     13PARENTPACKAGE=apache2
     14GEN_FILES=(/etc/apache2/sites-available/{ssl,svn})
    1315
    14 . /lib/lsb/init-functions
    15 
    16 gen_config()
    17 {
    18   for i in /etc/apache2/sites-available/{ssl,svn}
    19   do mako-render $i.mako > $i
    20   done
    21 }
    22 
    23 case "$1" in
    24   start|reload|force-reload|restart)
    25     log_begin_msg "Reloading config for $PACKAGE"
    26     gen_config
    27     log_end_msg $?
    28     /etc/init.d/apache2 "$1"
    29     ;;
    30   stop)
    31     /etc/init.d/apache2 "$1"
    32     ;;
    33   *)
    34     log_success_msg "Usage: /etc/init.d/$PACKAGE {start|reload|force-reload|restart|stop}"
    35     ;;
    36 esac
     16. /lib/init/config-init.sh
     17config_init "$1"
Note: See TracChangeset for help on using the changeset viewer.