#!/sbin/openrc-run
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id: c8a834fb9d6d75b4642f8035b1f2f9e4307058eb $

description="Start minimal X server for VDR"

. /etc/conf.d/vdr

command="/usr/bin/X"
command_args="${X11_SERVER:=\:0 -br -nocursor -nolisten tcp -quiet}"
start_stop_daemon_args="--make-pidfile --background"
pidfile="/var/run/vdr-x11.pid"

depend() {
	need localmount
	after acpid
	before vdr
}
