summaryrefslogtreecommitdiffstats
path: root/kde3/kdebase3/kdm
diff options
context:
space:
mode:
Diffstat (limited to 'kde3/kdebase3/kdm')
-rwxr-xr-xkde3/kdebase3/kdm33
1 files changed, 33 insertions, 0 deletions
diff --git a/kde3/kdebase3/kdm b/kde3/kdebase3/kdm
new file mode 100755
index 000000000..c2cb44eca
--- /dev/null
+++ b/kde3/kdebase3/kdm
@@ -0,0 +1,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
+