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.50) id 1EeCVX-0000xf-G3 for garchives@archives.gentoo.org; Mon, 21 Nov 2005 14:18:59 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id jALEHcm9023946; Mon, 21 Nov 2005 14:17:38 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [134.68.220.30]) by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id jALEBBiI019643 for ; Mon, 21 Nov 2005 14:11:11 GMT Received: from zproxy.gmail.com ([64.233.162.194]) by smtp.gentoo.org with esmtp (Exim 4.43) id 1EeCNy-0001YC-Vl for gentoo-user@lists.gentoo.org; Mon, 21 Nov 2005 14:11:11 +0000 Received: by zproxy.gmail.com with SMTP id j2so718134nzf for ; Mon, 21 Nov 2005 06:11:10 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=TgSlCkT9PUnwL82WB3Oqtn8B4b/0pQSkXv4svQBDHiYx/4+MhLq3uIxJMiHFVVNtbfBhb+GaP/7mMjdRAIpw8zk5+GyYPvT4aK4j9YsBIFsIyj2IXohidNxuh7hDykM0SHKLbed/WJxvIiG1oPsXKqsuGdzqcLxQyVA1nBLCw7c= Received: by 10.65.137.14 with SMTP id p14mr3008952qbn; Mon, 21 Nov 2005 06:11:09 -0800 (PST) Received: by 10.65.98.11 with HTTP; Mon, 21 Nov 2005 06:11:09 -0800 (PST) Message-ID: <12bada460511210611p5ba26012v@mail.gmail.com> Date: Mon, 21 Nov 2005 14:11:09 +0000 From: Anthony Roy To: gentoo-user@lists.gentoo.org Subject: [gentoo-user] Init script strangeness. 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 Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by robin.gentoo.org id jALEBBiI019643 X-Archives-Salt: 038e211a-2915-46aa-93c2-e05c16476302 X-Archives-Hash: a09511a7d1217da1c3e53b303841fce4 Hi all, I have written a simple init script for controlling a wiki, and have encountered a strange effect: from the init.d directory, I can start and stop my app just fine with wiki start and wiki stop resp. However, the stop script complains that the script has not been started! rc-status does not list my script, however wiki status shows it as started! The script is as follows: ===================== # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ depend() { need net after domainname } start() { ebegin "Starting Wiki" start-stop-daemon --start --quiet --background --pidfile /var/run/antwiki.pid --make-pidfile --exec /srv/wiki/wiki-start eend $? } stop() { ebegin "Stopping Wiki" start-stop-daemon --stop --pidfile /var/run/antwiki.pid --name wiki wget http://localhost:1234/?shutdown > /dev/null eend $? } ========================== Any ideas? -- Ant... -- gentoo-user@gentoo.org mailing list