* Fixed problem when BASEDIR paths were given without a trailing '/'.
[linux_from_scratch.git] / bootscripts / blfs / init.d / gdm
blob35ae1554a4d14046f1df06174dae7a3ceb5e7c59
1 #!/bin/sh
2 # Begin $rc_base/init.d/gdm
4 # Based on sysklogd script from LFS-3.1 and earlier.
5 # Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
7 . /etc/sysconfig/rc
8 . $rc_functions
10 export PATH=$PATH:/opt/gnome-2.4/bin:/opt/gnome-2.4/sbin
12 case "$1" in
13 start)
14 echo "Starting GDM..."
15 loadproc gdm
18 stop)
19 echo "Stopping GDM..."
20 if [ -f /var/run/gdm.pid ]; then
21 loadproc gdm-stop
25 reload)
26 echo "Reloading GDM..."
27 reloadproc gdm-safe-restart
30 restart)
31 echo "Restarting GDM..."
32 loadproc gdm-restart
36 echo "Usage: $0 {start|stop|reload|restart}"
37 exit 1
39 esac
41 # End $rc_base/init.d/gdm