blob: 2a8dc9b814aff11a4a75e9194684012b1035e275 (
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
|
#!/bin/sh
# PROVIDE: ncs_signaling
# REQUIRE: DAEMON nats
# KEYWORD: shutdown
#
# Add these lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# ncs_signaling_enable (bool): Set to NO by default.
# Set it to YES to enable ncs_signaling.
# ncs_signaling_config (path): Set to %%PREFIX%%/etc/ncs_signaling/ncs-signaling.cf
# by default.
. /etc/rc.subr
name=ncs_signaling
rcvar=ncs_signaling_enable
load_rc_config $name
: ${ncs_signaling_enable:="NO"}
: ${ncs_signaling_config:="%%PREFIX%%/etc/ncs/server.conf"}
command=/usr/sbin/daemon
command_args="-u signaling -f -T ncs_signaling -S %%PREFIX%%/bin/ncs-signaling -config $ncs_signaling_config"
run_rc_command "$1"
|