Package: openbsd-inetd
Version: 0.20080125-2
Severity: minor
We had a problem using heartbeat with /etc/init.d/openbsd-inetd. When
openbsd-inetd is already running and the initscript is invoked a second time with
"start" error code 1 is returned.
According to the Debian Policy[1] error code 0 is expected. Find attached
a patch which solved our problem.
[1]
http://www.debian.org/doc/debian-policy/ch-opersys.html#s-sysvinit
"The init.d scripts must ensure that they will behave sensibly (i.e.,
returning success and not starting multiple copies of a service) if
invoked with start when the
service is already running, or with stop when it isn't, and that they
don't kill unfortunately-named user processes. The best way achieve this
is usually to use
start-stop-daemon with the --oknodo option."
Discussion:
'Clarify what "sensible behaviour" is for init scripts' BTS#426877
--- openbsd-inetd.orig 2008-12-15 02:23:18.000000000 +0100
+++ openbsd-inetd 2010-08-11 10:16:04.000000000 +0200
@@ -47,6 +47,7 @@
checkportmap
log_daemon_msg "Starting internet superserver" "inetd"
start-stop-daemon --start --quiet --pidfile /var/run/inetd.pid \
+ --oknodo \
--exec $DAEMON -- $OPTIONS
log_end_msg 0
;;