aboutsummaryrefslogtreecommitdiff
path: root/multimedia/motion/files/motion.in
blob: c8814d84585d4099131eaac622ca546c637e8159 (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
#!/bin/sh

# PROVIDE: motion
# REQUIRE: DAEMON
# KEYWORD: shutdown
#
# Add the following line in /etc/rc.conf to enable motion at startup
#
# motion_enable="YES"

. /etc/rc.subr

name=motion
rcvar=motion_enable

load_rc_config $name

: ${motion_enable:=NO}

command=%%PREFIX%%/bin/${name}
pidfile="/var/run/${name}.pid"
required_files=%%ETCDIR%%/${name}.conf

run_rc_command "$1"