[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#160517: '/etc/init.d/boa restart' fails is boa is not running

Package: boa
Version: 0.94.12-1
Severity: serious
Justification: Policy 10.3.2
Tags: patch


If boa is not running,
/etc/init.d/boa restart fails:
yellowpig# /etc/init.d/boa stop
Stopping HTTP server: Boa.
yellowpig# /etc/init.d/boa restart
Restarting HTTP server: Boa. Boa not running!  Not attempting restart.

restart must always start the service, even if it is no more running.

Also the /etc/init.d script look very old.  Please find an updated
version at the end.

Bill. <ballombe@debian.org>

-- System Information
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux yellowpig 2.2.19 #1 Tue Apr 24 20:02:21 CEST 2001 i686
Locale: LANG=french, LC_CTYPE=french

Versions of packages boa depends on:
ii  libc6                         2.2.5-6    GNU C Library: Shared libraries an
ii  logrotate                     3.5.9-10   Log rotation utility
ii  mime-support                  3.19-1     MIME files 'mime.types' & 'mailcap

#! /bin/sh
#		Written by Miquel van Smoorenburg <miquels@cistron.nl>.
#		Modified for Debian GNU/Linux
#		by Ian Murdock <imurdock@gnu.ai.mit.edu>.
#               Modified for boa by Bill Allombert <ballombe@debian.org>.

DESC="HTTP server"

test -x $DAEMON || exit 0

set -e

case "$1" in
	echo -n "Starting $DESC: $NAME"
	start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \
		--exec $DAEMON
	echo "."
	echo -n "Stopping $DESC: $NAME "
	start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \
		--exec $DAEMON
	echo "."
	#	If the daemon can reload its config files on the fly
	#	for example by sending it SIGHUP, do it here.
	#	If the daemon responds to changes in its config file
	#	directly anyway, make this a do-nothing entry.
	echo -n "Reloading $DESC configuration..."
	start-stop-daemon --stop --signal 1 --quiet --pidfile \
	        /var/run/$NAME.pid --exec $DAEMON
	echo "done."
	# echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
	echo "Usage: $N {start|stop|restart|force-reload}" >&2
	exit 1

exit 0

Reply to: