Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Nov 2013 15:46:12 +0000
From:      "Teske, Devin" <Devin.Teske@fisglobal.com>
To:        James Griffin <jmz@kontrol.kode5.net>
Cc:        "Teske, Devin" <Devin.Teske@fisglobal.com>, Da Rock <freebsd-questions@herveybayaustralia.com.au>, FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: What is the "thinnest" display manager available?
Message-ID:  <9ACDC2F1-58FE-4C1A-9D70-80581AA93A81@fisglobal.com>
In-Reply-To: <201311281310.rASDAWwK005480@kontrol.kode5.net>
References:  <201311281310.rASDAWwK005480@kontrol.kode5.net>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]

On Nov 28, 2013, at 5:10 AM, James Griffin wrote:

>        On 11/27/13 06:55, Walter Hurry wrote:
>        > On Tue, 26 Nov 2013 09:59:07 +0100, Polytropon wrote:
>        >
>        >> Source: http://www.freebsd.org/doc/handbook/x-xdm.html
>        >>
>        >> Allow me to ask the following question:
>        >>
>        >> Is xdm (and as far as I know, also wdm) still an exception from the
>        >> "rc.conf rule", or how is it supposed to be started on "more modern"
>        >> versions?
>        > I'd be interested in the answer to that too, as I use XDM on ttyv8 per
>        > the handbook, and it has been faultless for me.
>        I still use ttys like Polytropon, but I believe recommended practice is
>        to use an rc.d system - just nobody has/could be bothered actually
>        writing one :D
>
>        Maybe I'll (or someone else) get a round tuit one day, but I wouldn't
>        hold your breath: it's been on the books for near a decade :)
>        _______________________________________________
>
>
> Actually, I came across a script written by someone for the CDE desktop.
> It would be easy to modify it for another X11 DM (I would think).
>
> Might be helpful to someone looking for a script of that type.

Funny to see someone say "it's been on the books for near a decade"

At $work, we launched xdm from rc.d for about that long (a decade)
and then moved away from it (toward ttys).

Dusted off and attached for your pleasure.


--
Devin

_____________
The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you.

[-- Attachment #2 --]
#!/bin/sh
############################################################ IDENT(1)
#
# $Title: xdm startup/shutdown script $
#
############################################################ RCORDER(8)

# See rcorder(8) for additional information.

# PROVIDE: xdm
# REQUIRE: DAEMON NETWORKING FILESYSTEMS LOGIN hostname
# KEYWORD: shutdown

############################################################ RC(8)

# See rc(8) for additional information.

. /etc/rc.subr

name="xdm"
rcvar=`set_rcvar`
stop_cmd=":"

############################################################ GLOBALS

: ${xdm_config=/usr/local/etc/xdm/xdm-config}

############################################################ FUNCTIONS

xdm_start()
{
	if [ -x /usr/X11R6/bin/xdm ]; then
		XDM=/usr/X11R6/bin/xdm
	elif [ -x /usr/local/bin/xdm ]; then
		XDM=/usr/local/bin/xdm
	else
		echo "Can't find xdm!" >&2
		exit 1
	fi

	CONF=
	if [ -e "$xdm_config" ]; then
		CONF="$xdm_config"
	fi

	$XDM ${CONF:+-config "$CONF"}
}

############################################################ MAIN

load_rc_config $name
run_rc_command "$1"

################################################################################
# END
################################################################################

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9ACDC2F1-58FE-4C1A-9D70-80581AA93A81>