summaryrefslogtreecommitdiffstats
path: root/kde3/kdebase3/kdm
blob: c2cb44ecadf0af07e26c679dc0aa005ad50eeda4 (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
26
27
28
29
30
31
32
33
#!/bin/sh
# Begin $rc_base/init.d/kdm

# $Id: kdm,v 1.4 2008/01/20 22:50:09 install Exp install $

. /etc/sysconfig/rc
. $rc_functions
pidfile=/var/run/kdm.pid
case "$1" in
	start)
		boot_mesg "Starting KDM"
		export HOME=/root
		cd $HOME
		loadproc /opt/kde/bin/kdm
		;;
	stop)
		boot_mesg "Stopping KDM"
		if [ -f $pidfile ]; then
			kill `cat $pidfile`
			rm $pidfile
		fi
		;;
	restart)
		$0 stop
		$0 start
		;;
	*)
		echo "Usage: $0 start|stop|restart"
		;;
esac

# End of file