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...
--
[email protected] mailing list