From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1GLS1p-000812-Fo for garchives@archives.gentoo.org; Thu, 07 Sep 2006 22:07:21 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.6) with SMTP id k87M5gfU014016; Thu, 7 Sep 2006 22:05:42 GMT Received: from pc18.dolda2000.com (1-1-3-7a.rny.sth.bostream.se [82.182.133.20]) by robin.gentoo.org (8.13.8/8.13.6) with ESMTP id k87M0P9e000448 for ; Thu, 7 Sep 2006 22:00:25 GMT Received: from pc7.dolda2000.com (pc7.dolda2000.com [IPv6:2002:52b6:8514:200:20c:76ff:fe3b:a3f4] (may be forged)) (authenticated bits=0) by pc18.dolda2000.com (8.13.7/8.13.7) with ESMTP id k87M0Q7h001807 for ; Fri, 8 Sep 2006 00:00:27 +0200 DomainKey-Signature: a=rsa-sha1; s=pri; d=dolda2000.com; c=nofws; q=dns; b=d5mJMA00qAlHSImXNYl5cAXTMnsctr20fBoAHlOCA11kOFULFxa3YdNYWJdHK6J+n ULHraJsbdFrfvQ9h0+mTZaq368Db97r+VuJjkeHpVwt2/7lI0QLpOfMYNPZOE0tENNd mKJGCQC/XBG4N36CO2ufvnP9vF/80Oq2HmInIFs= Subject: [gentoo-user] Init scripts acting weird with baselayout 1.12 From: Fredrik Tolf To: gentoo-user@lists.gentoo.org Content-Type: text/plain Date: Fri, 08 Sep 2006 00:00:26 +0200 Message-Id: <1157666426.11740.5.camel@pc7.dolda2000.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.6.2 Content-Transfer-Encoding: 7bit X-Greylist: Sender succeded SMTP AUTH authentication, not delayed by milter-greylist-1.6 (pc18.dolda2000.com [IPv6:2002:52b6:8514:100::4]); Fri, 08 Sep 2006 00:00:27 +0200 (CEST) X-Archives-Salt: 3622a990-2e2e-4fa3-914c-4412981b561f X-Archives-Hash: 4ad078a536aef29525d4afe6449d3b3a Ever since I got baselayout upgraded to 1.12, the init scripts that I have written for a couple of program are acting really weird. What happens is that they start the program normally, but then, when the program daemonizes and detaches, it immediately kills it (with a SIGTERM). These scripts are also really simple, so I don't understand at all what I could be doing wrong. Here's a sample: #!/sbin/runscript opts="start stop restart" depend() { need net } start() { ebegin "Starting cidd" start-stop-daemon -S -p /var/run/cidd.pid -qx /usr/local/sbin/cidd eend $? } stop() { ebegin "Stopping cidd" start-stop-daemon -K -p /var/run/cidd.pid -qx /usr/local/sbin/cidd eend $? } Is there anything wrong with this script that should cause it do act as I described? Fredrik Tolf -- gentoo-user@gentoo.org mailing list