#!/sbin/openrc-run

supervisor=supervise-daemon

name="NymphCast"
description="NymphCast audio/video casting server"

log_dir="/var/log/$RC_SVCNAME"
output_log="${output_log:-$log_dir/output.log}"
error_log="${error_log:-$log_dir/error.log}"

command="/usr/bin/nymphcast_server"
command_args="-c /etc/nymphcast/nymphcast_config.ini -a /usr/share/nymphcast/apps/ -w /usr/share/nymphcast/wallpapers/"
command_user=${command_user:-nymphcast:nymphcast}

start_pre() {
	checkpath --directory --owner=$command_user $log_dir
	checkpath --file --owner=$command_user $output_log $error_log
}
