#!/bin/sh # # $FreeBSD: head/irc/ircproxy/files/pkg-deinstall.in 340719 2014-01-22 15:52:06Z mat $ # case $2 in POST-DEINSTALL) cat </dev/null 2>&1 if [ $? -eq 0 ]; then for count in 1 2 3 4 5 6 7 8 9 10; do if [ $count -ge 5 ]; then kill -KILL "$PID" || break break fi kill -TERM "$PID" || break sleep 2 ps -p "$PID" >/dev/null 2>&1 if [ ! $? -eq 0 ]; then break; fi done fi fi echo ;; esac