source: bootscripts-standard/cblfs/init.d/gdm@ d8a3177

Last change on this file since d8a3177 was 7125722, checked in by Jim Gifford <clfs@…>, 17 years ago

Import of Bootscripts

  • Property mode set to 100644
File size: 755 bytes
Line 
1#!/bin/sh
2# Begin $rc_base/init.d/gdm
3
4# Based on sysklogd script from LFS-3.1 and earlier.
5# Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
6
7#$LastChangedBy: randy $
8#$Date: 2007-07-26 10:55:51 -0500 (Thu, 26 Jul 2007) $
9
10. /etc/sysconfig/rc
11. $rc_functions
12
13export PATH=$PATH:/opt/gnome-2.18.3/bin:/opt/gnome-2.18.3/sbin
14
15case "$1" in
16 start)
17 boot_mesg "Starting GDM..."
18 loadproc gdm
19 ;;
20
21 stop)
22 boot_mesg "Stopping GDM..."
23 if [ -f /var/run/gdm.pid ]; then
24 loadproc gdm-stop
25 fi
26 ;;
27
28 reload)
29 boot_mesg "Reloading GDM..."
30 loadproc gdm-safe-restart
31 ;;
32
33 restart)
34 boot_mesg "Restarting GDM..."
35 loadproc gdm-restart
36 ;;
37
38 *)
39 echo "Usage: $0 {start|stop|reload|restart}"
40 exit 1
41 ;;
42esac
43
44# End $rc_base/init.d/gdm
Note: See TracBrowser for help on using the repository browser.