freebsd-ports/comms/telldus-core/files/telldusd.in
John Marino 941fc51733 Add new port comms/telldus-core
PR:		189221
Submitted by:	johan (stromnet.se)

Allows access to Telldus Tellstick USB dongles for communicating with
433MHz devices in your home.

Provides "telldusd", the daemon which keeps track of your tellstick
devices. Through a UNIX socket, the sensors and devices can be used/
controlled from the command line tool "tdtool", or via the libtelldus-core
C client library.
2014-08-15 14:43:47 +00:00

28 lines
710 B
Bash

#!/bin/sh
#
# PROVIDE: telldusd
# Add the following lines to /etc/rc.conf to enable telldusd:
# telldusd_enable (bool): Set to "NO" by default.
# Set it to "YES" to enable telldusd.
# telldusd_flags (str): Set to "" by default.
# telldusd_configfile (str): Set to "/usr/local/etc/tellstick.conf" by defult
#
. /etc/rc.subr
name="telldusd"
rcvar=telldusd_enable
command="/usr/local/sbin/telldusd"
pidfile="/var/run/telldusd.pid"
telldusd_enable=${telldusd_enable:-"NO"}
telldusd_flags=${telldusd_flags:-""}
telldusd_configfile=${telldusd_configfile:-"/usr/local/etc/tellstick.conf"}
load_rc_config "${name}"
required_files="${telldusd_configfile}"
run_rc_command "$1"