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

Last change on this file since 7254832 was 7df280d, checked in by Joe Ciccone <jciccone@…>, 17 years ago

Change /bin/sh to /bin/bash in the bootscripts because the bootscripts use bashisms. Having ash linked to sh will cause errors. Thanks to Bigdassaved for providing the diff and Copper for bring up the issue.

  • Property mode set to 100644
File size: 773 bytes
Line 
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.