Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#1825 - /etc/rc.d/gdm script proposal

Attached to Project: Arch Linux
Opened by Xavier de Labouret (zezaz) - Monday, 22 November 2004, 21:59 GMT
Last edited by Dale Blount (dale) - Tuesday, 23 November 2004, 03:21 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To arjan timmerman (blaasvis)
Architecture not specified
Severity Low
Priority Normal
Reported Version 0.7 Wombat
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

Hi,

The gdm startup script could be more simple than it is. The upstream gdm package provides a gdm-stop program, so there is no need to use the generic arch way to stop gdm.

Moreover, i realized that stopping gdm with gdm-stop exits properly to console mode, which looks cleaner at shutdown :)

Following is my gdm script relying on gdm-stop. I use it on my PC since a few weeks and had no problem with this version.

Best thanks

--------------8<-------------

#!/bin/bash

. /etc/rc.conf
. /etc/rc.d/functions

case "$1" in
start)
stat_busy "Starting GDM"
/opt/gnome/bin/gdm
if [ $? -gt 0 ]; then
stat_fail
else
stat_done
fi
;;
stop)
stat_busy "Stopping GDM"
/opt/gnome/sbin/gdm-stop
if [ $? -gt 0 ]; then
stat_fail
else
stat_done
fi
;;
restart)
$0 stop
$0 start
;;
*)
echo "usage: $0 {start|stop|restart}"
esac
exit 0
This task depends upon

Closed by  arjan timmerman (blaasvis)
Tuesday, 23 November 2004, 15:16 GMT
Reason for closing:  Implemented

Loading...