freebsd-ports/multimedia/kissdx/files/kissdx.in
Alexey Dokuchaev c69ba31284 - Sadly, have to USE_GCC (any version) because of nested functions (and no
immediately obvious way to get rid of them)
- Some non-functional changes: fix a few noticed whitespace bugs and a typo
2013-08-24 09:58:30 +00:00

28 lines
535 B
Bash

#!/bin/sh
#
# Script to start and stop the KiSS DX deamon, using the rc.subr functionality
#
# Add the following lines to /etc/rc.conf to enable this service at boot time:
#
# kissdx_enable="YES" (kissdx="YES" for NetBSD)
#
. /etc/rc.subr
# Name of program to start
name="kissdx"
# Full path to program
command="%%PREFIX%%/sbin/${name}"
# Arguments used to start program
command_args="-kd"
required_files="%%PREFIX%%/etc/${name}.conf"
# Load variables from rc.conf
load_rc_config $name
# Invoke the rc.subr
run_rc_command "$1"