summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-misc/klive/files/klive.init.d')
-rw-r--r--app-misc/klive/files/klive.init.d6
1 files changed, 2 insertions, 4 deletions
diff --git a/app-misc/klive/files/klive.init.d b/app-misc/klive/files/klive.init.d
index 7db5f418b724..0b38a64957a9 100644
--- a/app-misc/klive/files/klive.init.d
+++ b/app-misc/klive/files/klive.init.d
@@ -1,7 +1,7 @@
#!/sbin/runscript
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2 or later
-# $Header: /var/cvsroot/gentoo-x86/app-misc/klive/files/klive.init.d,v 1.1 2005/09/11 22:54:19 dsd Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-misc/klive/files/klive.init.d,v 1.2 2005/09/12 10:42:38 r3pek Exp $
depend() {
need net
@@ -9,7 +9,7 @@ depend() {
start() {
ebegin "Starting KLive"
- /bin/su - klive -c "twistd --syslog --pidfile=/tmp/klive.pid -oy /usr/share/klive/klive.tac" > /dev/null
+ start-stop-daemon --chuid klive --start --exec /usr/bin/twistd -- --pidfile /tmp/klive.pid --syslog -oy /usr/share/klive/klive.tac
eend $?
}
@@ -17,6 +17,4 @@ stop() {
ebegin "Stopping KLive"
start-stop-daemon --stop --pidfile /tmp/klive.pid
eend $?
- [[ -e /tmp/klive.pid ]] && rm /tmp/klive.pid
- return 0
}