source: trunk/packages/xvm-iscsi-config/debian/xvm-iscsi-config.init @ 1541

Last change on this file since 1541 was 1527, checked in by broder, 16 years ago

Use bash for xvm-iscsi-config init script for gen-config.sh

  • Property svn:executable set to *
File size: 664 bytes
RevLine 
[1527]1#! /bin/bash
[1496]2### BEGIN INIT INFO
3# Provides:          xvm-iscsi-config
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: XVM iSCSI config
9# Description:       Re-generate the iSCSI config for XVM's shared storage
10### END INIT INFO
11
12# Author: SIPB XVM Project <xvm@mit.edu>
13
[1507]14NAME=xvm-iscsi-config
15DESC="Re-generate the iSCSI config"
[1496]16PATH=/sbin:/usr/sbin:/bin:/usr/bin
[1507]17GEN_FILES=/etc/iscsi/iscsid.conf.xvm
[1496]18
19# Read configuration variable file if it is present
20[ -r /etc/default/$NAME ] && . /etc/default/$NAME
21
[1507]22. /lib/init/config-init.sh
[1496]23
[1507]24config_init "$1"
Note: See TracBrowser for help on using the repository browser.