blob: e048e0a8e3df5c0fd44b66f0a8104b8570914e27 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#!/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"
|