pkgsrc/security/py-prewikka/files/prewikka.sh
shannonjr a22c5267d6 Prelude is a hybrid IDS consisting of multiple
sensors, managers, and a display console. This
is the display console.

This is one of several new Prelude packages.
2006-01-29 16:00:44 +00:00

30 lines
562 B
Bash

#!/bin/sh
#
# $NetBSD: prewikka.sh,v 1.1.1.1 2006/01/29 16:00:44 shannonjr Exp $
#
# PROVIDE: prewikka
# REQUIRE: mysqld LOGIN
$_rc_subr_loaded . /etc/rc.subr
name="prewikka"
rcvar=$name
required_files="@PKG_SYSCONFDIR@/prewikka/prewikka.conf"
start_precmd="prewikka_precommand"
command="@PREFIX@/sbin/runPrewikka -p 8080 -a 192.168.1.8"
prewikka_precommand()
{
for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20; do
if [ -S /tmp/mysql.sock ]; then
break
else
sleep 1
echo -n '.'
fi
done
}
load_rc_config $name
run_rc_command "$1"