summaryrefslogtreecommitdiff
path: root/sysutils/scanbd/files/scanbd.in
blob: cbee8687e477cf22e4537b3bcf355203bac381a6 (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
27
28
29
30
#!/bin/sh
# PROVIDE: scanbd
# REQUIRE: DAEMON FILESYSTEMS LOGIN dbus
# KEYWORD: shutdown
#
# Add these lines to /etc/rc.conf.local or /etc/rc.conf
# to enable the service
# scanbd_enable (bool):     Set to NO by default.
#                           Set to YES to enable scanbd.
# scanbd_config (path):     set to %%PREFIX%%/etc/scanbd/scanbd.conf
#                           by default


. /etc/rc.subr

name=scanbd
desc="Scanbd: Scan button Daemon"
rcvar=scanbd_enable

load_rc_config $name

: ${scanbd_enable:=NO}
: ${scanbd_config="%%PREFIX%%/etc/scanbd/scanbd.conf"}

command_args="-c $scanbd_config"
command="%%PREFIX%%/sbin/${name}" 


run_rc_command "$1"