updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / trinity-kdebase / kdm-trinity
blob48f2903558cd05b19406668b6457ce5397a25d3e
1 #!/bin/bash
3 # general config
4 . /etc/rc.conf
5 . /etc/rc.d/functions
7 case "$1" in
8 start)
9 #Check for running kdm, start when not running
10 stat_busy "Starting KDM"
11 /opt/trinity/bin/kdm
12 if [ $? -gt 0 ]; then
13 stat_fail
14 else
15 add_daemon kdm
16 stat_done
19 stop)
20 stat_busy "Stopping KDM"
21 [ -f /var/run/kdm.pid ] && kill `cat /var/run/kdm.pid` &> /dev/null
22 if [ $? -gt 0 ]; then
23 stat_fail
24 else
25 rm_daemon kdm
26 stat_done
29 restart)
30 $0 stop
31 sleep 1
32 $0 start
35 echo "usage: $0 {start|stop|restart}"
37 esac
38 exit 0