blob: 695326fb9be1396b7511b02e2e94ee07546e6f78 (
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
|
#!/bin/sh
# $FreeBSD$
#
# PROVIDE: isnsd
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# isnsd_enable (bool): Set to NO by default.
# Set it to YES to enable daemon.
# isnsd_config (path): Set to %%PREFIX%%/etc/isns/${name}.conf
# by default.
# isnsd_flags (str): Set to "" by default.
# Extra flags passed to start command.
. /etc/rc.subr
name="isnsd"
desc="Internet Storage Name Service daemon"
rcvar=`set_rcvar`
load_rc_config "$name"
eval "${rcvar}=\${${rcvar}:-'NO'}"
: ${isnsd_config="%%PREFIX%%/etc/isns/isnsd.conf"}
: ${isnsd_flags=""}
pidfile="/var/run/${name}.pid"
command="%%PREFIX%%/sbin/${name}"
command_args="--config \"${isnsd_config}\" ${isnsd_flags}"
run_rc_command "$1"
|