source: trunk/packages/invirt-dev/debian/invirt-dev.init @ 2581

Last change on this file since 2581 was 2565, checked in by broder, 15 years ago

Add a script for generating the remctl configuration to trigger the
Invirtibuilder.

  • Property svn:executable set to *
File size: 755 bytes
RevLine 
[890]1#!/bin/bash
[2552]2### BEGIN INIT INFO
3# Provides:          invirt-dev
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: Invirt development configuration
9# Description:       
10### END INIT INFO
[853]11
[2552]12# Author: Invirt project <invirt@mit.edu>
[853]13
[2552]14# Do NOT "set -e"
[853]15
[2552]16NAME=invirt-dev
17GEN_FILES=/srv/repository/conf/distributions
[853]18
[2552]19. /lib/init/gen-files.sh
20
[853]21case "$1" in
22  start|reload|force-reload|restart)
23    log_begin_msg "Reloading config for $PACKAGE"
[2552]24    gen_files
25    reprepro-env export
[2565]26    invirt-build-conf
[853]27    log_end_msg $?
28    ;;
29  stop)
30    ;;
31  *)
[2552]32    log_success_msg "Usage: /etc/init.d/$NAME {start|reload|force-reload|restart|stop}"
[853]33    ;;
34esac
Note: See TracBrowser for help on using the repository browser.