Changeset 1216


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

shorten sipb-xen-database-server initscript too

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

Legend:

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

    r1174 r1216  
     1sipb-xen-database (10.35) unstable; urgency=low
     2
     3  * Shorten initscript with spiffy new library from sipb-xen-base
     4
     5 -- Greg Price <price@mit.edu>  Fri, 24 Oct 2008 07:25:56 -0400
     6
    17sipb-xen-database (10.34) unstable; urgency=low
    28
  • trunk/packages/sipb-xen-database/debian/control

    r974 r1216  
    1515Package: sipb-xen-database-server
    1616Architecture: all
    17 Depends: ${misc:Depends}, ${python:Depends}, postgresql-8.3, python-sqlalchemy, python-psycopg2, sipb-xen-database-common, adduser
     17Depends: ${misc:Depends}, ${python:Depends}, postgresql-8.3, python-sqlalchemy, python-psycopg2, sipb-xen-database-common, adduser, sipb-xen-base
    1818Description: Installs the SIPB Xen database server
    1919 This tracks all the user VMs and is accessed from the VM host
  • trunk/packages/sipb-xen-database/debian/sipb-xen-database-server.init

    r1104 r1216  
    1111
    1212PACKAGE=sipb-xen-database-server
     13PARENTPACKAGE=postgresql-8.3
     14GEN_FILES=/etc/postgresql/8.3/main/pg_hba.conf
    1315
    14 # Exit if the package is not installed
    15 [ -x "/usr/bin/sipb-xen-database-tables" ] || exit 0
     16dpkg -s "$PACKAGE" >/dev/null 2>/dev/null || exit 0
    1617
    17 . /lib/init/vars.sh
    18 . /lib/lsb/init-functions
    19 
    20 gen_config()
    21 {
    22   for i in /etc/postgresql/8.3/main/pg_hba.conf
    23   do mako-render $i.mako > $i
    24   done
    25 }
    26 
    27 case "$1" in
    28   start|reload|force-reload|restart)
    29     log_begin_msg "Reloading config for $PACKAGE"
    30     gen_config
    31     log_end_msg $?
    32     /etc/init.d/postgresql-8.3 "$1"
    33     ;;
    34   stop)
    35     ;;
    36   *)
    37     log_success_msg "Usage: /etc/init.d/$PACKAGE {start|reload|force-reload|restart|stop}"
    38     ;;
    39 esac
     18. /lib/init/config-init.sh
     19config_init "$1"
Note: See TracChangeset for help on using the changeset viewer.