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

Last change on this file since 56f753d was 2167cfe, checked in by William Harrington <kb0iic@…>, 10 years ago

bootscripts are the scripts used for the sysvinit book.

  • Property mode set to 100644
File size: 773 bytes
RevLine 
[2167cfe]1#!/bin/bash
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
13pidfile=/var/run/gdm.pid
14
15export PATH=$PATH:/opt/gnome/bin:/opt/gnome/sbin
16
17case "$1" in
18 start)
19 boot_mesg "Starting GDM..."
20 loadproc -p $pidfile gdm
21 ;;
22
23 stop)
24 boot_mesg "Stopping GDM..."
25 if [ -f $pidfile ]; then
26 loadproc gdm-stop
27 fi
28 ;;
29
30 reload)
31 boot_mesg "Reloading GDM..."
32 loadproc gdm-safe-restart
33 ;;
34
35 restart)
36 boot_mesg "Restarting GDM..."
37 loadproc gdm-restart
38 ;;
39
40 *)
41 echo "Usage: $0 {start|stop|reload|restart}"
42 exit 1
43 ;;
44esac
45
46# End $rc_base/init.d/gdm
Note: See TracBrowser for help on using the repository browser.