source: trunk/packages/invirt-remote/debian/invirt-remote-host.init @ 2134

Last change on this file since 2134 was 1822, checked in by broder, 16 years ago

Merge invirt-remote-host and invirt-remote-server into invirt-remote

  • Property svn:executable set to *
File size: 817 bytes
RevLine 
[875]1#!/bin/bash
[876]2### BEGIN INIT INFO
[1239]3# Provides:          invirt-remote-host
[876]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
[1239]8# Short-Description: remctl configuration for an Invirt host
[876]9# Description:
10### END INIT INFO
[815]11
[1239]12PACKAGE=invirt-remote-host
[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 $?
[1443]28    invoke-rc.d openbsd-inetd start # returns 1 if inetd is running
[1075]29    [ $? -eq 1 ] && exit 0
[875]30    ;;
[815]31  stop)
[875]32    ;;
[815]33  *)
[875]34    log_success_msg "Usage: /etc/init.d/$PACKAGE {start|reload|force-reload|restart|stop}"
35    ;;
[815]36esac
Note: See TracBrowser for help on using the repository browser.