mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-15 07:56:36 +00:00
ca38353a6a
NNTPSwitch is a NNTP content router. It's aimed at high-performance news servers for ISPs and Usenet resellers. NNTPSwitch forwards client connections to multiple backend servers to get its actual articles. Depending on the backend server type, all NNTP commands and extensions are supported, including (remote) authorization. Accounting is supported in a user-friendly matter for data limited NNTP connections. WWW: http://www.nntpswitch.org/
23 lines
517 B
Bash
23 lines
517 B
Bash
#!/bin/sh
|
|
|
|
if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then
|
|
echo "$0: Cannot determine the PREFIX" >&2
|
|
exit 1
|
|
fi
|
|
|
|
case "$1" in
|
|
start)
|
|
[ -x ${PREFIX}/sbin/nntpswitchd ] && \
|
|
[ -r ${PREFIX}/etc/nntpswitch/nntpswitch.conf ] && \
|
|
${PREFIX}/sbin/nntpswitchd 2>/dev/null && \
|
|
echo -n ' nntpswitchd'
|
|
|
|
;;
|
|
stop)
|
|
kill `cat /var/run/nntpswitchd.pid` && echo -n ' nntpswitchd'
|
|
;;
|
|
*)
|
|
echo "Usage: `basename $0` {start|stop}" >&2
|
|
;;
|
|
esac
|