blob: 90257c45142158d2d5cd84ea7db92fa9503f02b7 (
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
31
32
33
|
#!/bin/sh
#
# $NetBSD: preludemanager.sh,v 1.1.1.1 2006/01/29 15:57:49 shannonjr Exp $
#
# PROVIDE: preludemanager
# REQUIRE: mysqld LOGIN
$_rc_subr_loaded . /etc/rc.subr
name="preludemanager"
rcvar=${name}
required_files="@PKG_SYSCONFDIR@/prelude-manager/prelude-manager.conf"
start_precmd="preludemanager_precommand"
start_cmd="@PREFIX@/sbin/run-prelude-manager -d"
pidfile="@PRELUDE_MANAGER_PID_DIR@/prelude-manager.pid"
preludemanager_precommand()
{
/bin/mkdir -p @PRELUDE_MANAGER_PID_DIR@
/usr/sbin/chown _prelude:_prelude @PRELUDE_MANAGER_PID_DIR@
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"
|