summaryrefslogtreecommitdiffstats
path: root/data/ConsoleKit.in
diff options
context:
space:
mode:
authorMichael Biebl <mbiebl@gmail.com>2007-12-08 22:50:17 -0500
committerWilliam Jon McCann <mccann@jhu.edu>2007-12-08 22:50:17 -0500
commit751b95f2aa2eb2cea7fe9e0dec0848865d118ad0 (patch)
tree7f6d2f3ea0b405f94f48d30d6af8598d9fe3d0f4 /data/ConsoleKit.in
parenteb610a07a17db29138df50cafa4cf131a645332e (diff)
remove obsolete sysv init script
given that my first patch get's applied, it makes sense to remove the old sysv init script, as it's not really needed anymore. Besides, most distros will not use this init script anyways as they have special policies for their init script and provide their own.
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