#!/sbin/runscript
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id: 2ca211f436edaf6c935329374fa0a201584e28c2 $

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
}
