Merge pull request #158 from eb041592/master

Update FreeBSD RC script
This commit is contained in:
Andy 2018-03-29 20:37:43 +02:00 committed by GitHub
commit 612f8fc0b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 4 deletions

View File

@ -12,18 +12,17 @@
name="ympd"
rcvar="${name}_enable"
command="/usr/local/bin/ympd"
command="/usr/local/bin/${name}"
pidfile="/var/run/${name}.pid"
start_cmd="ympd_start"
load_rc_config "$name"
load_rc_config "${name}"
: ${ympd_enable:="NO"}
: ${ympd_user:="nobody"}
ympd_start()
{
check_startmsgs && echo "Starting ${name}."
/usr/sbin/daemon -f -p "${pidfile}" -t "${name}" -u "${ympd_user}" "${command}"
/usr/sbin/daemon -f -p "${pidfile}" "${command}" "${rc_flags}"
}
run_rc_command "$1"