Subject: pkg/13475: x11/gdm does not provide a startup script
To: None <gnats-bugs@gnats.netbsd.org>
From: Martin Husemann <martin@duskware.de>
List: netbsd-bugs
Date: 07/15/2001 21:24:09
>Number:         13475
>Category:       pkg
>Synopsis:       x11/gdm does not provide a startup script
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Jul 15 12:21:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Martin Husemann
>Release:        gdm-2.2.0
>Organization:
	
>Environment:
	
System: NetBSD night-porter.duskware.de 1.5W NetBSD 1.5W (PORTER) #0: Sun Jul 8 22:03:42 MEST 2001 martin@night-porter.duskware.de:/usr/src/sys/arch/i386/compile/PORTER i386
Architecture: i386
Machine: i386
>Description:

The gdm pgk does not provide a rc.d script to enable it at system startup.

>How-To-Repeat:
code inspection

>Fix:
Take the system supplied xdm script and modify it slightly, like this:

---8<---
#!/bin/sh
#
# $NetBSD: xdm,v 1.6 2000/09/19 13:04:39 lukem Exp $
#

# PROVIDE: gdm
# REQUIRE: DAEMON LOGIN wscons
# KEYWORD: shutdown

. /etc/rc.subr

name="gdm"
rcvar=$name
command="/usr/X11R6/bin/${name}"
pidfile="/var/run/xdm.pid"
required_files="/usr/X11R6/etc/gdm/gdm.conf"
extra_commands="reload"

load_rc_config $name
run_rc_command "$1"
--->8---
>Release-Note:
>Audit-Trail:
>Unformatted: