Viitor_upstart/etc/init/initlvm.conf
kueller c90b7d0eb4 Events werden jetzt mit endung *.conf erstellt...
git-svn-id: svn://svn.compuextreme.de/Viitor/V962/Viitor_upstart@5505 504e572c-2e33-0410-9681-be2bf7408885
2010-04-20 12:54:36 +00:00

29 lines
803 B
Plaintext

# rcS - runlevel compatibility
#
# This task runs the old sysv-rc startup scripts.
start on stopped virtualfs
#stop on runlevel
description "Initialize Locical Volume Manager (LVM)"
author "Harald Kueller <harald.kueller@compuextreme.de>"
console logged
# Note: there can be no previous runlevel here, if we have one it's bad
# information (we enter rc1 not rcS for maintenance). Run /etc/init.d/rc
# without information so that it defaults to previous=N runlevel=S.
console output
script
source /etc/event.d/functions
if [ -f /sbin/vgscan ]; then
/sbin/vgscan >/dev/null 2>&1
status_message "Scanning of Volumes....."
for i in `vgdisplay|grep "VG Name"|awk '{print $3}'`; do
vgchange -a -y $i
status_message "Volume Aktivation of $i ..."
done
fi
end script