freebsd-ports/audio/forked-daapd/files/forked-daapd.in
Ben Woods 1e328be727 audio/forked-daapd: Remove substitions which are not related to variables
Remove %%PORTNAME%% and %%RC_NAME%% from:
- files/forked-daapd.in
- files/pkg-message.in

Reported by: mat (mentor)
Approved by: xxx (mentor)

Reported by:	mat
Approved by:	mat (mentor)
Differential Revision:	https://reviews.freebsd.org/D6329
2016-05-12 08:09:20 +00:00

35 lines
821 B
Bash

#!/bin/sh
# $FreeBSD$
#
# PROVIDE: forked-daapd
# REQUIRE: avahi_daemon dbus
# KEYWORD: shutdown
#
# Add these lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# forked_daapd_enable (bool): Set to NO by default.
# Set it to YES to enable forked-daapd.
# forked_daapd_config (path): Set to %%PREFIX%%/etc/forked-daapd.conf
# by default.
# forked_daapd_flags (str): Set to "" by default
. /etc/rc.subr
name=forked_daapd
rcvar=${name}_enable
load_rc_config $name
: ${forked_daapd_enable:="NO"}
: ${forked_daapd_config:="%%PREFIX%%/etc/forked-daapd.conf"}
: ${forked_daapd_flags:=""}
pidfile="/var/run/forked-daapd.pid"
required_files="$forked_daapd_config"
command="%%PREFIX%%/sbin/forked-daapd"
command_args="-P $pidfile -c $forked_daapd_config $forked_daapd_flags"
run_rc_command "$1"