updated on Sun Jan 15 20:01:04 UTC 2012
[aur-mirror.git] / gdm-old / gdm
blobeee606468ef794f1c3f84715358aac6e0ff62bdd
1 #!/bin/bash
3 . /etc/rc.conf
4 . /etc/rc.d/functions
6 case "$1" in
7 start)
8 stat_busy "Starting GDM"
9 /usr/sbin/gdm
10 if [ $? -gt 0 ]; then
11 stat_fail
12 else
13 add_daemon gdm
14 stat_done
17 stop)
18 stat_busy "Stopping GDM"
19 /usr/sbin/gdm-stop > /dev/null 2>&1
20 if [ $? -gt 0 ]; then
21 stat_fail
22 else
23 rm_daemon gdm
24 stat_done
25 fi
27 restart)
28 $0 stop
29 sleep 2
30 $0 start
33 echo "usage: $0 {start|stop|restart}"
34 esac
35 exit 0