Bug#427889: [Pkg-sysvinit-devel] Bug#427889: skeleton "start" and "stop" return values not LSB compliant

Dmitry Bogatov KAction at debian.org
Mon Feb 25 09:34:22 GMT 2019


control: severity -1 important
control: retitle -1 exit status of do_start from init-d-script violates policy

Hi, 10 years after.

Here is quote from init-d-script:

	# Return
	#   0 if daemon has been started
	#   1 if daemon was already running
	#   2 if daemon could not be started
	do_start_cmd() {

And here is quote from policy:

	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,

Since obliviously, 1 is not succes, we are violating Policy (and common
sense, if you ask me). Raising severity.
-- 
        Note, that I send and fetch email in batch, once every 24 hours.
                 If matter is urgent, try https://t.me/kaction
                                                                             --




More information about the Debian-init-diversity mailing list