blob: f6f485d6087031d8e32e74b0567b9d3da9f8528e (
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
34
35
|
#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: iasp_admin.sh,v 1.1.1.1 2003/01/01 07:03:42 jlam Exp $
#
# PROVIDE: iasp_admin
# REQUIRE: iasp
# KEYWORD: shutdown
if [ -f /etc/rc.subr ]; then
. /etc/rc.subr
fi
name="iasp_admin"
rcvar=$name
start_cmd=iasp_admin_start
stop_cmd=iasp_admin_stop
iasp_admin_start()
{
@IASP@/start-admin.sh &
sleep 2
}
iasp_admin_stop()
{
@IASP@/stop-admin.sh
}
if [ -f /etc/rc.subr -a -f /etc/rc.conf -a -d /etc/rc.d -a -f /etc/rc.d/DAEMON ]
then
load_rc_config $name
run_rc_command "$1"
else
eval ${start_cmd}
fi
|