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

Last change on this file since 1755 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
Line 
1#! /bin/bash
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
14NAME=xvm-iscsi-config
15DESC="Re-generate the iSCSI config"
16PATH=/sbin:/usr/sbin:/bin:/usr/bin
17GEN_FILES=/etc/iscsi/iscsid.conf.xvm
18
19# Read configuration variable file if it is present
20[ -r /etc/default/$NAME ] && . /etc/default/$NAME
21
22. /lib/init/config-init.sh
23
24config_init "$1"
Note: See TracBrowser for help on using the repository browser.