Subversion Repositories configs

Rev

Rev 4 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
4 - 1
#!/bin/bash
2
#
3
# Copyright (C) 2012 Red Hat, Inc. All rights reserved.
4
#
5
# This copyrighted material is made available to anyone wishing to use,
6
# modify, copy, or redistribute it subject to the terms and conditions
7
# of the GNU General Public License v.2.
8
#
9
# You should have received a copy of the GNU General Public License
10
# along with this program; if not, write to the Free Software Foundation,
58 - 11
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
4 - 12
#
13
# This file is part of LVM2.
14
# It is required for the proper handling of failures of LVM2 mirror
15
# devices that were created using the -m option of lvcreate.
16
#
17
#
18
# chkconfig: 12345 25 75
19
# description: Controls availability of block devices
20
#
21
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
22
#
23
### BEGIN INIT INFO
24
# Provides: blk-availability
25
# Required-Start:
26
# Required-Stop:
27
# Default-Start: 1 2 3 4 5
28
# Default-Stop: 0 6
29
# Short-Description: Availability of block devices
30
### END INIT INFO
31
 
32
. /etc/init.d/functions
33
 
34
sbindir=/sbin
35
script=blkdeactivate
36
options="-u -l wholevg"
37
 
38
LOCK_FILE="/var/lock/subsys/blk-availability"
39
 
40
 
41
rtrn=1
42
 
43
case "$1" in
44
  start)
45
	touch $LOCK_FILE
46
	;;
47
 
48
  stop)
49
	action "Stopping block device availability:" $sbindir/$script $options
50
	rm -f $LOCK_FILE
51
	;;
52
 
53
  status)
54
	;;
55
  *)
56
	echo $"Usage: $0 {start|stop|status}"
57
	;;
58
esac