fafb2df969
pgLOGd, simply put, is a program that takes web server log entries and sends them to a database. It is called pgLOGd because of the database it was designed to function with, PostgreSQL. It is fast, robust and features fall-back-logging to a text file. It is flexible and typically uses less than 128K of memory. PR: ports/51647 Submitted by: Allie Micka <allie@pajunas.com>
17 lines
359 B
Bash
17 lines
359 B
Bash
#!/bin/sh
|
|
CONFIG=%%PREFIX%%/pglogd.conf
|
|
PID=/var/run/pglogd.pid
|
|
|
|
case "$1" in
|
|
start)
|
|
[ -r ${CONFIG} ] && [ -x %%PREFIX%%/bin/pglogd ] && %%PREFIX%%/bin/pglogd -s -c ${CONFIG} > /dev/null && echo -n ' pglogd'
|
|
;;
|
|
stop)
|
|
[ -r ${PID} ] && kill `cat ${PID}` > /dev/null && echo -n ' pglogd'
|
|
;;
|
|
*)
|
|
echo "Usage: `basename $0` {start|stop}" >&2
|
|
;;
|
|
esac
|
|
|
|
exit 0
|