Re: [gentoo-user] Init script strangeness.
On 11/21/05, Anthony Roy <[EMAIL PROTECTED]> wrote: > Thanks for the quick reply, but #!/sbin/runscript is the first line - > it must have scrolled just off of the screen when I copied the text > (sorry!). There are 2 conditions required for the start-stop-daemon to successfully stop the service: 1. A process with the given process id must exist in the system 2. Since you are giving the "--name wiki" option, the process name in /proc//stat must be "wiki". Can you verify that both of those conditions are true? # cat /proc/`cat /var/run/antwiki.pid`/stat -Richard > > > You don't appear to have "#!/sbin/runscript" on the first line. > > Any other ideas. > > -- > Ant... > > -- > gentoo-user@gentoo.org mailing list > > -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Init script strangeness.
Thanks for the quick reply, but #!/sbin/runscript is the first line - it must have scrolled just off of the screen when I copied the text (sorry!). > You don't appear to have "#!/sbin/runscript" on the first line. Any other ideas. -- Ant... -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Init script strangeness.
On Mon, 21 Nov 2005 14:11:09 +, Anthony Roy wrote: > I have written a simple init script for controlling a wiki, and have > encountered a strange effect: You don't appear to have "#!/sbin/runscript" on the first line. -- Neil Bothwick ... "I just forgot to increment the counter," Tom said, nonplussed. signature.asc Description: PGP signature
[gentoo-user] Init script strangeness.
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