blob: 31633d1476bbd57ee35e29bce48d8d986655953b (
plain) (
blame)
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
|
#!/bin/sh
# PROVIDE: minisatip
# REQUIRE: DAEMON webcamd
# KEYWORD: shutdown
#
# Add the following line to /etc/rc.conf[.local] to enable minisatip
#
# minisatip_enable (bool): Set to "NO" by default.
# Set it to "YES" to enable minisatip.
# minisatip_flags (str): Custom flags for minisatip
. /etc/rc.subr
name=minisatip
rcvar=minisatip_enable
load_rc_config $name
: ${minisatip_enable:=NO}
pidfile="/var/run/${name}.pid"
command="%%PREFIX%%/sbin/minisatip"
command_args="-g -R %%PREFIX%%/share/minisatip/html"
run_rc_command "$1"
|