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

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

simplified the init script to follow sipb-xen-console.init

  • Property svn:executable set to *
File size: 469 bytes
Line 
1#!/bin/bash
2
3PACKAGE=sipb-xen-remctl-auto
4
5. /lib/lsb/init-functions
6
7gen_config()
8{
9    echo "host/$(invirt-getconf remote.hostname)@$(invirt-getconf authn.0.realm)" \
10        > /etc/remctl/acl/remote
11}
12
13case "$1" in
14  start|reload|force-reload|restart)
15    log_begin_msg "Reloading config for $PACKAGE"
16    gen_config
17    log_end_msg $?
18    ;;
19  stop)
20    ;;
21  *)
22    log_success_msg "Usage: /etc/init.d/$PACKAGE {start|reload|force-reload|restart|stop}"
23    ;;
24esac
Note: See TracBrowser for help on using the repository browser.