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

Bug#203239: marked as done (debian-policy: Add 'restart-if-running' option to initscripts)



Your message dated Mon, 28 Jul 2003 21:01:27 -0500
with message-id <873cgqgkg8.fsf@glaurung.green-gryphon.com>
and subject line Bug#203239: debian-policy: Add 'restart-if-running' option to initscripts
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 28 Jul 2003 19:50:26 +0000
>From jdthood@yahoo.co.uk Mon Jul 28 14:48:12 2003
Return-path: <jdthood@yahoo.co.uk>
Received: from mars.mj.nl [81.91.1.49] 
	by master.debian.org with smtp (Exim 3.35 1 (Debian))
	id 19hDye-0007z6-00; Mon, 28 Jul 2003 14:48:12 -0500
Received: (qmail 26408 invoked from network); 28 Jul 2003 19:48:11 -0000
Received: from 81-91-5-95-customer.mjdsl.nl (HELO thanatos.localdomain) (81.91.5.95)
  by www.mj.nl with SMTP; 28 Jul 2003 19:48:11 -0000
Received: by thanatos.localdomain (Postfix, from userid 1001)
	id E2CDD10D8AA; Mon, 28 Jul 2003 21:48:10 +0200 (CEST)
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="ISO-8859-15"
From: Thomas Hood <jdthood@yahoo.co.uk>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: debian-policy: Add 'restart-if-running' option to initscripts
X-Mailer: reportbug 2.19
Date: Mon, 28 Jul 2003 21:48:10 +0200
Message-Id: <[🔎] 20030728194810.E2CDD10D8AA@thanatos.localdomain>
Delivered-To: submit@bugs.debian.org
X-Spam-Status: No, hits=-9.2 required=4.0
	tests=BAYES_20,HAS_PACKAGE,QUOTED_EMAIL_TEXT
	version=2.53-bugs.debian.org_2003_07_20
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.53-bugs.debian.org_2003_07_20 (1.174.2.15-2003-03-30-exp)

Package: debian-policy
Version: 3.6.0
Severity: wishlist

Wish #87994 originally submitted by Henrique M Holschuh <hmh@debian.org>
seems to have been closed inadvertently.  It was merged with #60979
which was closed by release 3.5.9.0:

>   * When asked to restart a service that isn't already running,
>     the init script should start it,              closes: #60979

Wish #87994, however, was for the countenancing of an initscript option
that restarts services only if they _are_ running.  That would be useful
to have in postinst scripts on upgrade.

--- Original #87994 ---

This proposal has ties to #76868 (invoke-rc.d), #60979 (what /etc/init.d/xxx
restart does?).

"Action" in the text below is the *first* parameter specified for an init
script (e.g.: in /etc/init.d/foo start, "start" is the action).

The naming for the new 'initscript action' was discussed in #76868, before
it was split from the main proposal of invoke-rc.d.

I propose that a new init script action, 'restart-if-running', defined as:
  IFF daemon-is-running-NOW then
      stop daemon
      start daemon
      return OK exit status if daemon started, otherwise return ERROR
  else
      return OK exit status

to be defined in policy, as *OPTIONAL*.

The main reason for such definition is that we currently lack the
functionality provided by 'restart-if-running', and it cannot be easily (as
in not in an error-prone way) emulated through other methods.


-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux thanatos 2.4.21 #3 Wed Jun 18 21:35:52 CEST 2003 i686
Locale: LANG=en_IE@euro, LC_CTYPE=en_IE@euro

-- no debconf information


---------------------------------------
Received: (at 203239-done) by bugs.debian.org; 29 Jul 2003 02:03:36 +0000
>From srivasta@debian.org Mon Jul 28 21:03:18 2003
Return-path: <srivasta@debian.org>
Received: from host-12-107-230-171.dtccom.net (glaurung.green-gryphon.com) [12.107.230.171] 
	by master.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 19hJpd-0008SC-00; Mon, 28 Jul 2003 21:03:17 -0500
Received: from glaurung.green-gryphon.com (srivasta@localhost [127.0.0.1])
	by glaurung.green-gryphon.com (8.12.9/8.12.9/Debian-5) with ESMTP id h6T21SNA016670;
	Mon, 28 Jul 2003 21:01:28 -0500
Received: (from srivasta@localhost)
	by glaurung.green-gryphon.com (8.12.9/8.12.9/Debian-5) id h6T21SKb016666;
	Mon, 28 Jul 2003 21:01:28 -0500
X-Authentication-Warning: glaurung.green-gryphon.com: srivasta set sender to srivasta@debian.org using -f
X-Mailer: emacs 21.3.2 (via feedmail 8 I)
To: Thomas Hood <jdthood@yahoo.co.uk>
Cc: 203239-done@bugs.debian.org
Subject: Re: Bug#203239: debian-policy: Add 'restart-if-running' option to
 initscripts
References: <[🔎] 20030728194810.E2CDD10D8AA@thanatos.localdomain>
From: Manoj Srivastava <srivasta@debian.org>
Organization: The Debian Project
X-URL: http://www.debian.org/%7Esrivasta/
User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux)
 (i386-pc-linux-gnu)
Mail-Copies-To: nobody
X-Face: #q.#]5@vq!Jz+E0t_/;Y^gTjR\T^"B'fbeuVGiyKrvbfKJl!^e|e:iu(kJ6c|QYB57LP*|t
 &YlP~HF/=h:GA6o6W@I#deQL-%#.6]!z:6Cj0kd#4]>*D,|0djf'CVlXkI,>aV4\}?d_KEqsN{Nnt7
 78"OsbQ["56/!nisvyB/uA5Q.{)gm6?q.j71ww.>b9b]-sG8zNt%KkIa>xWg&1VcjZk[hBQ>]j~`Wq
 Xl,y1a!(>6`UM{~'X[Y_,Bv+}=L\SS*mA8=s;!=O`ja|@PEzb&i0}Qp,`Z\:6:OmRi*
Date: Mon, 28 Jul 2003 21:01:27 -0500
In-Reply-To: <[🔎] 20030728194810.E2CDD10D8AA@thanatos.localdomain> (Thomas
 Hood's message of "Mon, 28 Jul 2003 21:48:10 +0200")
Message-ID: <873cgqgkg8.fsf@glaurung.green-gryphon.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Delivered-To: 203239-done@bugs.debian.org
X-Spam-Status: No, hits=-14.4 required=4.0
	tests=BAYES_30,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,
	      REPLY_WITH_QUOTES,USER_AGENT_GNUS_UA,X_AUTH_WARNING
	autolearn=ham version=2.53-bugs.debian.org_2003_07_20
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.53-bugs.debian.org_2003_07_20 (1.174.2.15-2003-03-30-exp)

On Mon, 28 Jul 2003 21:48:10 +0200, Thomas Hood <jdthood@yahoo.co.uk> said: 

> Wish #87994 originally submitted by Henrique M Holschuh
> <hmh@debian.org> seems to have been closed inadvertently.  It was
> merged with #60979 which was closed by release 3.5.9.0:

>> * When asked to restart a service that isn't already running,
>> the init script should start it, closes: #60979

> Wish #87994, however, was for the countenancing of an initscript
> option that restarts services only if they _are_ running.  That
> would be useful to have in postinst scripts on upgrade.

> --- Original #87994 ---

> This proposal has ties to #76868 (invoke-rc.d), #60979 (what
> /etc/init.d/xxx restart does?).

> "Action" in the text below is the *first* parameter specified for an
> init script (e.g.: in /etc/init.d/foo start, "start" is the action).

> The naming for the new 'initscript action' was discussed in #76868,
> before it was split from the main proposal of invoke-rc.d.

> I propose that a new init script action, 'restart-if-running',
> defined as:
>   IFF daemon-is-running-NOW then
>       stop daemon start daemon return OK exit status if daemon
>       started, otherwise return ERROR
>   else
>       return OK exit status

> to be defined in policy, as *OPTIONAL*.

> The main reason for such definition is that we currently lack the
> functionality provided by 'restart-if-running', and it cannot be
> easily (as in not in an error-prone way) emulated through other
> methods.

	This is premature as a policy proposal -- _starting_ with a
 policy proposal, and expecting the design and implementation to
 follow, is the wrong end of things. 

	While it is not writ in stone that policy _always_ shall
 document current implementation (if the current implementation is
 demonstrably wrong then policy ought to not insist on incorrect
 behaviour), but the (few) exceptions tend to demonstrate the general
 rule.

	In this case, the right thing to do is to get people to
 incorporate this restart-if-running action, and _then_ come to ask it
 to be written into policy.

	Adding an init script action in advance of current practice,
 and then using policy to beat people on the head with it, is not a
 good idea.

	In general, one should design, and implement new "stuff"
 before asking that it be enshrined in policy. (this is not, after
 all, debian-devel, where development related discussion happen).

	manoj

-- 
Don't be humble ... you're not that great. Golda Meir
Manoj Srivastava   <srivasta@debian.org>  <http://www.debian.org/%7Esrivasta/>
1024R/C7261095 print CB D9 F4 12 68 07 E4 05  CC 2D 27 12 1D F5 E8 6E
1024D/BF24424C print 4966 F272 D093 B493 410B  924B 21BA DABB BF24 424C



Reply to: