1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00
freebsd-ports/net/plb/files/plb.sh.sample
Vanilla I. Shu 8fca44e75c Add plb, it's a high-performance software load balancer for the HTTP protocol.
PR:		ports/48714
Submitted by:	Frank Denis <j@pureftpd.org>
2003-02-26 21:17:36 +00:00

20 lines
254 B
Bash

#!/bin/sh
case "$1" in
start)
if [ -x %%PREFIX%%/bin/plb ]; then
%%PREFIX%%/bin/plb -B -c %%PREFIX%%/etc/plb.conf && echo -n ' plb'
fi
;;
stop)
kill $(cat /var/run/plb.pid)
rm -f /var/run/plb.pid
;;
*)
echo "$0 start | stop"
;;
esac