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

Bug#152955: debian-policy: section 10.3.2 in force-reload should be more clear



Package: debian-policy
Version: 3.5.6.1
Severity: wishlist

After short discussion on debian-devel it is obvious, that the section on
policy about the restart and force reload of daemons in init.d scripts could
be more verbose. There are two options, one is to document the current
behavior (which can be found in the skel script) the other is a change in
the behavior, which is less desirable.

I propose the following extension to 10.3.2 (please correct my stupid
English).

---
The 'restart' method of the init.d script must not fail, if the daemon was
not running. This means, it will simply start a new daemon instance, without
reporting an error. This behavior is also allowed for 'force-reload' if it
is linked to the restart method. Other methods of 'force-reload' (like
signalling or null implementation, because of automatic config reload) do
not need to start a terminated process. In this case a non null error level
should be returned.
---

<... most likely we should also define exit levels, like RH does ...>

Greetings
Bernd

-- System Information
Debian Release: 3.0
Kernel Version: Linux calista 2.4.18-xfs #8 Wed May 1 10:30:33 CEST 2002 i686 unknown

Versions of the packages debian-policy depends on:
ii  fileutils      4.1-10         GNU file management utilities


-- 
To UNSUBSCRIBE, email to debian-policy-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: