File: multipathd-stop.sh

package info (click to toggle)
dracut 110-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,356 kB
  • sloc: sh: 24,895; ansic: 5,236; makefile: 346; perl: 186; python: 48; javascript: 19
file content (15 lines) | stat: -rwxr-xr-x 315 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

command -v pidof > /dev/null || . /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