public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Anthony Roy <antroy@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] Init script strangeness.
Date: Mon, 21 Nov 2005 14:11:09 +0000	[thread overview]
Message-ID: <12bada460511210611p5ba26012v@mail.gmail.com> (raw)

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



             reply	other threads:[~2005-11-21 14:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-21 14:11 Anthony Roy [this message]
2005-11-21 14:50 ` [gentoo-user] Init script strangeness Neil Bothwick
2005-11-21 20:30   ` Anthony Roy
2005-11-22  0:24     ` Richard Fish

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=12bada460511210611p5ba26012v@mail.gmail.com \
    --to=antroy@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox