summaryrefslogtreecommitdiffstats
path: root/data/ConsoleKit.in
diff options
context:
space:
mode:
Diffstat (limited to 'data/ConsoleKit.in')
-rwxr-xr-xdata/ConsoleKit.in70
1 files changed, 0 insertions, 70 deletions
diff --git a/data/ConsoleKit.in b/data/ConsoleKit.in
deleted file mode 100755
index 83360cd..0000000
--- a/data/ConsoleKit.in
+++ /dev/null
@@ -1,70 +0,0 @@
-#!/bin/sh
-#
-# ConsoleKit: ConsoleKit daemon
-#
-# chkconfig: 345 90 10
-# description: The ConsoleKit maintains a list of sessions
-#
-# processname: console-kit-daemon
-# pidfile: @CONSOLE_KIT_PID_FILE@
-#
-
-# Sanity checks.
-[ -x @sbindir@/console-kit-daemon ] || exit 0
-
-# Source function library.
-. @sysconfdir@/rc.d/init.d/functions
-
-# so we can rearrange this easily
-processname=console-kit-daemon
-servicename=ConsoleKit
-
-RETVAL=0
-
-start() {
- echo -n $"Starting ConsoleKit: "
- daemon --check $servicename $processname
- RETVAL=$?
- echo
- [ $RETVAL -eq 0 ] && touch @localstatedir@/lock/subsys/$servicename
-}
-
-stop() {
- echo -n $"Stopping ConsoleKit: "
-
- killproc $processname -TERM
- RETVAL=$?
- echo
- if [ $RETVAL -eq 0 ]; then
- rm -f @localstatedir@/lock/subsys/$servicename
- rm -f @CONSOLE_KIT_PID_FILE@
- fi
-}
-
-# See how we were called.
-case "$1" in
- start)
- start
- ;;
- stop)
- stop
- ;;
- status)
- status $processname
- RETVAL=$?
- ;;
- restart)
- stop
- start
- ;;
- condrestart)
- if [ -f @localstatedir@/lock/subsys/$servicename ]; then
- stop
- start
- fi
- ;;
- *)
- echo $"Usage: $0 {start|stop|status|restart|condrestart}"
- ;;
-esac
-exit $RETVAL