1 2 3 4 5 6 7
#!/bin/sh if [ "${2}" == "up" ]; then if pgrep -x pacredir >/dev/null; then kill -HUP $(pgrep -x pacredir) fi fi