ports/sysutils/scanbd/files/scanbd.in
Trenton Schulz ff29416867 sysutils/scanbd: Make the port better behaved.
- Address issues in rclint, portlint and the port test tool.
- make sure scanbd.conf is a sample file.

PR:		272066
2023-06-27 00:58:23 +02:00

30 lines
663 B
Bash
Executable file

#!/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"