Changeset 1212 for trunk


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

use new initscript library in invirt-console-host

Location:
trunk/packages/invirt-console-host/debian
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-console-host/debian/changelog

    r1198 r1212  
     1invirt-console-host (0.0.3) unstable; urgency=low
     2
     3  * make initscript even shorter, with code now provided by sipb-xen-base
     4
     5 -- Greg Price <price@mit.edu>  Fri, 24 Oct 2008 07:07:46 -0400
     6
    17invirt-console-host (0.0.2) unstable; urgency=low
    28
  • trunk/packages/invirt-console-host/debian/control

    r1187 r1212  
    1010Provides: ${diverted-files}
    1111Conflicts: ${diverted-files}
    12 Depends: ${shlibs:Depends}, ${misc:Depends}, conserver-server, remctl-client
     12Depends: ${shlibs:Depends}, ${misc:Depends}, conserver-server, remctl-client, sipb-xen-base
    1313Description: SIPB Xen serial console server server
    1414  This configures the VMM for the server-side of the console server
  • trunk/packages/invirt-console-host/debian/control.in

    r1187 r1212  
    1010Provides: ${diverted-files}
    1111Conflicts: ${diverted-files}
    12 Depends: ${shlibs:Depends}, ${misc:Depends}, conserver-server, remctl-client
     12Depends: ${shlibs:Depends}, ${misc:Depends}, conserver-server, remctl-client, sipb-xen-base
    1313Description: SIPB Xen serial console server server
    1414  This configures the VMM for the server-side of the console server
  • trunk/packages/invirt-console-host/debian/invirt-console-host.init

    r1198 r1212  
    1 #! /bin/sh
     1#! /bin/bash
    22### BEGIN INIT INFO
    33# Provides:          invirt-console-host
     
    1212PACKAGE=invirt-console-host
    1313PARENTPACKAGE=conserver-server
     14GEN_FILES=/etc/conserver/invirt-genconfig.cf
    1415
    1516dpkg -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/conserver/invirt-genconfig.cf
    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/"$PARENTPACKAGE" "$1"
    33     ;;
    34   stop)
    35     /etc/init.d/"$PARENTPACKAGE" "$1"
    36     ;;
    37   *)
    38     log_success_msg "Usage: /etc/init.d/$PACKAGE {start|reload|force-reload|restart|stop}"
    39     ;;
    40 esac
     18. /lib/init/config-init.sh
     19config_init $1
Note: See TracChangeset for help on using the changeset viewer.