source: trunk/packages/sipb-xen-remctl-auto/debian/sipb-xen-remctl-auto.init @ 983

Last change on this file since 983 was 891, checked in by y_z, 16 years ago

generate config files using mako

  • Property svn:executable set to *
File size: 738 bytes
RevLine 
[875]1#!/bin/bash
[876]2### BEGIN INIT INFO
3# Provides:          sipb-xen-remctl-auto
4# Required-Start:    $local_fs $remote_fs
5# Required-Stop:     $local_fs $remote_fs
6# Default-Start:     2 3 4 5
7# Default-Stop:      0 1 6
8# Short-Description: conserver config from invirt config for invirt host
9# Description:
10### END INIT INFO
[815]11
[875]12PACKAGE=sipb-xen-remctl-auto
[815]13
14. /lib/lsb/init-functions
15
16gen_config()
17{
[891]18    for i in /etc/remctl/acl/remote
19    do mako-render $i.mako > $i
20    done
[815]21}
22
23case "$1" in
[875]24  start|reload|force-reload|restart)
25    log_begin_msg "Reloading config for $PACKAGE"
26    gen_config
27    log_end_msg $?
28    ;;
[815]29  stop)
[875]30    ;;
[815]31  *)
[875]32    log_success_msg "Usage: /etc/init.d/$PACKAGE {start|reload|force-reload|restart|stop}"
33    ;;
[815]34esac
Note: See TracBrowser for help on using the repository browser.