ispCP - Board - Support
patch for gentoo /etc/init.d/ispcp_daemon - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Development Area (/forum-1.html)
+--- Forum: Tickets / Roadmap / Timeline (/forum-50.html)
+--- Thread: patch for gentoo /etc/init.d/ispcp_daemon (/thread-8515.html)



patch for gentoo /etc/init.d/ispcp_daemon - none - 11-22-2009 06:02 AM

The PID ist not generated correctly using this patch solves the problem:

Code:
--- configs/gentoo/init.d/ispcp_daemon.orig     2009-11-13 03:31:21.816623465 +0100
+++ configs/gentoo/init.d/ispcp_daemon  2009-11-13 03:29:37.476915642 +0100
@@ -41,7 +41,9 @@ depend() {

start() {
     ebegin "Starting $SVCNAME"
-    start-stop-daemon --start --exec $DAEMON --pidfile $PID
+    start-stop-daemon --start --exec $DAEMON --make-pidfile --pidfile $PID
+    sleep 1
+    /bin/pidof ispcp_daemon > $PID
     eend $?
}

I tried to create a account in the bugtracker but I was asked for a htaccess user/pw so I posted it here.