summaryrefslogtreecommitdiffstats
path: root/modules.d/90multipath/multipathd-stop.sh
blob: 05181b4b7d9b04fcd8eea10a4d55b115860c6a07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

type pidof > /dev/null 2>&1 || . /lib/dracut-lib.sh

if [ -e /etc/multipath.conf ]; then
    pkill multipathd > /dev/null 2>&1

    if pidof multipathd > /dev/null 2>&1; then
        sleep 0.2
    fi

    if pidof multipathd > /dev/null 2>&1; then
        pkill -9 multipathd > /dev/null 2>&1
    fi
fi