ports/irc/bopm/files/bopm.sh.sample
Kirill Ponomarev d46c5b1fc5 Add bopm 3.1.2,
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>
2004-08-06 07:46:51 +00:00

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