]>
Commit | Line | Data |
---|---|---|
88938811 MT |
1 | #!/bin/sh |
2 | ######################################################################## | |
3 | # Begin $rc_base/init.d/lvmeta2 | |
4 | # | |
5 | # Description : LVM2 Metadata Daemon | |
6 | ######################################################################## | |
7 | ||
8 | . /etc/sysconfig/rc | |
9 | . ${rc_functions} | |
10 | ||
11 | case "${1}" in | |
12 | start) | |
13 | # Create diretory for control socket | |
14 | mkdir -p /run/lvm | |
15 | ||
16 | boot_mesg "Starting LVM2 Metadata Daemon..." | |
17 | loadproc /usr/sbin/lvmetad | |
18 | ;; | |
19 | ||
20 | stop) | |
21 | boot_mesg "Stopping LVM2 Metadata Daemon..." | |
22 | killproc /usr/sbin/lvmetad | |
23 | ;; | |
24 | ||
25 | restart) | |
26 | ${0} stop | |
27 | sleep 1 | |
28 | ${0} start | |
29 | ;; | |
30 | ||
31 | status) | |
32 | statusproc /usr/sbin/lvmetad | |
33 | ;; | |
34 | ||
35 | *) | |
36 | echo "Usage: ${0} {start|stop|restart|status}" | |
37 | exit 1 | |
38 | ;; | |
39 | esac | |
40 | ||
41 | # End $rc_base/init.d/lvmetad |