#!/bin/bash # Begin $rc_base/init.d/gdm # Based on sysklogd script from LFS-3.1 and earlier. # Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org #$LastChangedBy: randy $ #$Date: 2007-07-26 10:55:51 -0500 (Thu, 26 Jul 2007) $ . /etc/sysconfig/rc . $rc_functions pidfile=/var/run/gdm.pid export PATH=$PATH:/opt/gnome/bin:/opt/gnome/sbin case "$1" in start) boot_mesg "Starting GDM..." loadproc -p $pidfile gdm ;; stop) boot_mesg "Stopping GDM..." if [ -f $pidfile ]; then loadproc gdm-stop fi ;; reload) boot_mesg "Reloading GDM..." loadproc gdm-safe-restart ;; restart) boot_mesg "Restarting GDM..." loadproc gdm-restart ;; *) echo "Usage: $0 {start|stop|reload|restart}" exit 1 ;; esac # End $rc_base/init.d/gdm