]> git.pld-linux.org Git - packages/gdm.git/blob - gdm.init
corrected binary path
[packages/gdm.git] / gdm.init
1 #!/bin/sh
2 #
3 # gdm:          Starts the Gnome Display Manager
4 #
5 # Version:      @(#) /etc/rc.d/init.d/gdm 0.1
6 #
7 # chkconfig:    5 99 5
8 # description:  Starts and stops the Gnome Display Manager at startup and
9 #               shutdown..
10 #
11 # config:       /etc/X11/gdm/gdm-config
12 # probe:        true
13 # hide:         true
14
15 . /etc/rc.d/init.d/functions
16
17 # Get service config
18 if [ -f /etc/sysconfig/gdm ] ; then
19         . /etc/sysconfig/gdm
20 fi
21
22 # See how we were called.
23 case "$1" in
24   start)
25         # Check if the service is already running?
26         if [ ! -f /var/lock/subsys/gdm ]; then
27                 msg_starting "Gnome Display Manager"
28                 daemon open /usr/bin/gdm
29                 RETVAL=$?
30                 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/gdm
31         else
32                 msg_Already_Running "Gnome Display Manager"
33         fi
34         ;;
35   stop)
36         if [ -f /var/lock/subsys/gdm ]; then
37                 msg_stopping "Gnome Display Manager"
38                 killproc gdm
39                 rm -f /var/lock/subsys/gdm
40         else
41                 msg_Not_Running "Gnome Display Manager"
42         fi
43         ;;
44   status)
45         status gdm
46         ;;
47   restart|reload)
48         $0 stop
49         $0 start
50         ;;
51   *)
52         echo "Usage: $0 {start|stop|status|restart|reload}"
53         exit 1
54 esac
55
56 exit $RETVAL
This page took 0.035748 seconds and 4 git commands to generate.