mirror of
https://git.freebsd.org/ports.git
synced 2025-06-22 21:20:31 -04:00
bopm is an open-source open proxy monitor, designed for use with hybrid-based ircds, although it can be used with slight modification on any server which has +c to show connects to opers and that supports KLINEs in order to K-LINE incoming connects from open proxies. PR: ports/70065 Submitted by: Evgueni V. Gavrilov <aquatique@rusunix.org>
24 lines
390 B
Bash
24 lines
390 B
Bash
#!/bin/sh
|
|
|
|
PREFIX=$(expr $0 : "\(/.*/\)etc/rc\.d/$(basename $0)\$")
|
|
|
|
BOPM=${PREFIX}bin/bopm
|
|
|
|
case "$1" in
|
|
start)
|
|
if [ -x $BOPM ]; then
|
|
su bopm -c $BOPM -d >/dev/null 2>&1
|
|
echo -n ' bopm'
|
|
fi
|
|
;;
|
|
stop)
|
|
# kill `cat ${PREFIX}/etc/ircd-hybrid-ru/ircd.pid` >/dev/null 2>&1
|
|
killall bopm >/dev/null 2>&1
|
|
echo -n ' bopm'
|
|
;;
|
|
*)
|
|
echo "Usage: `basename $0` {start|stop}" >&2
|
|
;;
|
|
esac
|
|
|
|
exit 0
|