summaryrefslogtreecommitdiff
path: root/package/x11r7/xapp_xdm/S99xdm
blob: 4dd1cd8882640b84729a3f7834dbdf8219bd4d90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh

XDM_BIN=/usr/bin/xdm

case "$1" in
    start)
        echo -n "Starting XDM: "
        $XDM_BIN
        echo "done"
        ;;
    stop)
	echo "Stopping XDM"
        killall -q xdm
        ;;
    restart)
	$0 stop
	$0 start
        ;;
    *)
        echo "Usage: $0 {start|stop|restart}"
        exit 1
        ;;
esac

exit 0