aboutsummaryrefslogtreecommitdiff
path: root/multimedia/kissdx/files/kissdx.in
blob: 19179f4efadae88311facf29ca9a2215abf18b66 (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
#!/bin/sh
#
# This script 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" A
# (kissdx="YES" for NetBSD)
#

. %%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"