Last change
on this file since b1bad43 was 1680407, checked in by Jim Gifford <clfs@…>, 17 years ago |
Added Netboot Scripts
|
-
Property mode
set to
100644
|
File size:
771 bytes
|
Rev | Line | |
---|
[7125722] | 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 |
|
---|
[1680407] | 13 | pidfile=/var/run/gdm.pid
|
---|
| 14 |
|
---|
| 15 | export PATH=$PATH:/opt/gnome/bin:/opt/gnome/sbin
|
---|
[7125722] | 16 |
|
---|
| 17 | case "$1" in
|
---|
| 18 | start)
|
---|
| 19 | boot_mesg "Starting GDM..."
|
---|
[1680407] | 20 | loadproc -p $pidfile gdm
|
---|
[7125722] | 21 | ;;
|
---|
| 22 |
|
---|
| 23 | stop)
|
---|
| 24 | boot_mesg "Stopping GDM..."
|
---|
[1680407] | 25 | if [ -f $pidfile ]; then
|
---|
[7125722] | 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 | ;;
|
---|
| 44 | esac
|
---|
| 45 |
|
---|
| 46 | # End $rc_base/init.d/gdm
|
---|
Note:
See
TracBrowser
for help on using the repository browser.