]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - src/initscripts/system/lvmetad
suricata: use KILL is suricata not shut down normal.
[people/pmueller/ipfire-2.x.git] / src / initscripts / system / lvmetad
CommitLineData
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
11case "${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 ;;
39esac
40
41# End $rc_base/init.d/lvmetad