RpR
Legacy Member
Ik heb volgend init script op gentoo en zou dit graag ook op ubuntu gebruiken doordat dit sneller is dan eerst gdm te laden etc. Ook heeft betere crash afhandeling als gdm.
Heb ik reeds ook op ubuntu forum gepost.
Wie het kan omzetten krijgt 10€ via paypal of belgische rekening overgeschreven want ik kom zot van het proberen te doen werken.
/etc/init.d/mythfrondend
/etc/conf.d/mythfrondend
/home/mythtv/.xinitrc
Heb ik reeds ook op ubuntu forum gepost.
Wie het kan omzetten krijgt 10€ via paypal of belgische rekening overgeschreven want ik kom zot van het proberen te doen werken.
/etc/init.d/mythfrondend
Code:
#!/sbin/runscript
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
depend() {
use net irexec mythbackend
}
start() {
ebegin "Starting MythTV Frontend"
start-stop-daemon --start --quiet --background \
--chuid ${MYTH_UID} \
--exec /usr/bin/startx \
-- -- ${MYTH_XOPTS} vt${MYTH_VT}
eend $?
}
stop() {
ebegin "Stopping MythTV Frontend"
# Make an assumption here: if there are any of these programs running
# under MYTH_UID, then this script started them, and now needs to kill
# them.
if [ "$(pgrep -u ${MYTH_UID} xinit)" ]; then
start-stop-daemon --stop --name xinit \
--user ${MYTH_UID} --quiet
eend $?
fi
}
/etc/conf.d/mythfrondend
Code:
# User id that all the processes should run as.
MYTH_UID="mythtv"
# HOME directory. Needed to find .xinitrc file and .mythtv directory.
HOME="/home/${MYTH_UID}"
# X runs on the first VT available. At the point this script runs during
# system start-up, the gettys haven't started yet, so the first available VT is
# VT2. Then, when the getty on VT2 starts, it grabs the keyboard away from X.
# To avoid having to turn off gettys in /etc/inittab, tell X where to find an
# "unreserved" VT.
MYTH_VT="7"
# If there are any other X server options you want to use, set them here.
MYTH_XOPTS="-nolisten tcp -br -dpi 100"
/home/mythtv/.xinitrc
Code:
/usr/local/bin/xwarppointer abspos 720 480
/usr/bin/xset -dpms s off
while :; do
/usr/bin/mythfrontend -v important,general -l /var/log/mythtv/mythfrontend.log
done
)