Date: Tue, 16 Nov 2004 01:26:42 +0100 From: Jose M Rodriguez <josemi@freebsd.jazztel.es> To: Michael Nottebrock <michaelnottebrock@gmx.net> Cc: kde-freebsd@freebsd.kde.org Subject: Re: [kde-freebsd] X related scripts in Xclients ports Message-ID: <200411160126.43029.freebsd@redesjm.local> In-Reply-To: <200411160058.03975.michaelnottebrock@gmx.net> References: <200411151151.33028.freebsd@redesjm.local> <200411160043.15294.freebsd@redesjm.local> <200411160058.03975.michaelnottebrock@gmx.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--Boundary-00=_DlUmBwirOnv7zMA Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline El Martes, 16 de Noviembre de 2004 00:57, Michael Nottebrock escribi=F3: > On Tuesday, 16. November 2004 00:43, Jose M Rodriguez wrote: > > El Lunes, 15 de Noviembre de 2004 14:04, Michael Nottebrock=20 escribi=F3: > > > Jose M Rodriguez wrote: > > > > Any comments on this are welcome. > > > > > > Before I go commenting, I have a question... what's the > > > PR-number? :) > > > > http://docs.freebsd.org/cgi/getmsg.cgi?fetch=3D1397145+0+archive/2004 > >/freebsd -current/20041003.freebsd-current > > I can't find this message in my archive of freebsd-current. Can you > please send the patch again (as an attachment)? this is the patch I use locally against RELENG_5 (patch -p0=20 from /usr/src) the script is /etc/rc.d/0xdm But I think that a localpkg script must be better (Usable in RELENG_4,=20 less problems with init, etc ... Also you may need in Xservers: =2D:0 local /usr/X11R6/bin/X -nolisten tcp +:0 local /usr/X11R6/bin/X -nolisten tcp vt9 With avoid any kind of race with init gettys (up to vt8). You can=20 detect this race by a graphical login without keyboard input. =2D- josemi --Boundary-00=_DlUmBwirOnv7zMA Content-Type: text/x-diff; charset="iso-8859-1"; name="patch-xdm" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="patch-xdm" diff -Nru /usr/src/etc/rc.d/0xdm etc/rc.d/0xdm --- /usr/src/etc/rc.d/0xdm Thu Jan 1 01:00:00 1970 +++ etc/rc.d/0xdm Sat Oct 2 17:10:00 2004 @@ -0,0 +1,56 @@ +#!/bin/sh +# +# $NetBSD: xdm,v 1.5 2000/07/17 15:24:48 lukem Exp $ +# + +# PROVIDE: xdm +# REQUIRE: DAEMON LOGIN syscons moused +# KEYWORD: nojail shutdown + +. /etc/rc.subr + +name="xdm" +rcvar=`set_rcvar` + +# Place any needed extra config in /etc/rc.conf.d/xdm +load_rc_config $name + +command="${xdm_program:-/usr/X11R6/bin/xdm}" + +# a good ENV for a X11 App, we are in our subshell +HOME="/root" +PATH="/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin" +export PATH HOME + +case `basename ${command}` in + xdm) + # xdm standard display manager + : ${required_files:=/usr/X11R6/lib/X11/xdm/xdm-config} + : ${pidfile:=/var/run/xdm.pid} + : ${extra_commands:="reload"} + ;; + gdm) + # gnome gdm display manager + : ${required_files:=${command%/bin/gdm}/etc/gdm/gdm.conf} + : ${pidfile:=/var/run/gdm.pid} + : ${procname:=${command}-binary} + ;; + kdm) + # KDE kdm display manager + : ${required_files:=${command%/bin/kdm}/share/config/kdm/kdmrc} + : ${pidfile:=/var/run/kdm.pid} + # don't use start_precmd(). We have local genkdmconf.sh now + ;; + Xorg) + # xdm login via Xorg broadcast XDMCP + : ${required_files:=/etc/X11/xorg.conf} + : ${xdm_flags:=-broadcast &} + ;; + Xfree86) + # xdm login via Xfree86 broadcast XDMCP + : ${required_files:=/etc/X11/XF86Config} + : ${xdm_flags:=-broadcast &} + ;; +esac + +run_rc_command "$1" --- etc/rc.d/Makefile.orig Thu Oct 14 21:22:31 2004 +++ etc/rc.d/Makefile Thu Oct 14 21:23:07 2004 @@ -37,6 +37,7 @@ ugidfw usbd \ var vinum virecover \ watchdogd \ + 0xdm \ ypbind yppasswdd ypserv \ ypset ypupdated ypxfrd FILESDIR= /etc/rc.d --- etc/defaults/rc.conf.orig Mon Oct 18 12:13:02 2004 +++ etc/defaults/rc.conf Mon Oct 18 12:14:28 2004 @@ -471,6 +471,7 @@ bsdextended_script="/etc/rc.bsdextended" # Default mac_bsdextended(4) # ruleset file. swapoff="NO" # Remove swap partitions upon shutdown +xdm_enable="NO" # Start the X11 Display Manager ############################################################## ### Jail Configuration ####################################### --Boundary-00=_DlUmBwirOnv7zMA--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200411160126.43029.freebsd>