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

Bug#87994: marked as done (add 'restart-if-running' in init scripts)



Your message dated Mon, 10 Mar 2003 14:11:40 -0500
with message-id <E18sSgW-0005n0-00@auric.debian.org>
and subject line Bug#60979: fixed in debian-policy 3.5.9.0
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 Feb 2001 15:24:45 +0000
>From hmh@debian.org Wed Feb 28 09:24:45 2001
Return-path: <hmh@debian.org>
Received: from (mail.cps.matrix.com.br) [::ffff:200.196.9.5] 
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 14Y8T6-0000Te-00; Wed, 28 Feb 2001 09:24:44 -0600
Received: from godzillah.rivendell.sol (srv1.rcm.org.br [200.196.10.141])
	by mail.cps.matrix.com.br (8.11.1/8.11.1) with ESMTP id f1SFYS685868;
	Wed, 28 Feb 2001 12:34:28 -0300 (BRT)
	(envelope-from hmh@debian.org)
Received: by godzillah.rivendell.sol (Postfix, from userid 1000)
	id 46BCB587A; Wed, 28 Feb 2001 12:24:26 -0300 (BRT)
Date: Wed, 28 Feb 2001 12:24:25 -0300
From: Henrique M Holschuh <hmh@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: [PROPOSAL] better initscript definition, and adding 'restart-if-running'
Message-ID: <20010228122425.A6112@godzillah>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
X-Reportbug-Version: 1.14
X-GPG-Fingerprint-1: 1024D/128D36EE 50AC 661A 7963 0BBA 8155  43D5 6EF7 F36B 128D 36EE
X-GPG-Fingerprint-2: 1024D/1CDB0FE3 5422 5C61 F6B7 06FB 7E04  3738 EE25 DE3F 1CDB 0FE3
Delivered-To: submit@bugs.debian.org

Package: debian-policy
Version: 3.5.2.0
Severity: wishlist

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.

I'd also like us to better define init scripts, by making it forbidden to
have initscripts in Debian that:

  1. Act in a non-expected way for any of the actions defined in policy
     (e.g.: stopping a daemon in the 'start' action)
     
  2. Misbehaves if given an unknown action
     (e.g.: running the 'start' action regardless of what is passed to it as
      the first argument -- we have some stuff in rcS.d that has this problem,
      and yes, I am offering myself to hunt the offending parties down, fix
      them, send patches to the BTS, and NMU if the maintainer is too busy
      to apply the patch and upload).
     This should be read as: the initscript should return an non-zero status 
     code if called with an unknown/unsupported action.

-- System Information
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux godzillah.rivendell.sol 2.2.19pre16 #1 Tue Feb 27 21:55:56 BRT 2001 i586

Versions of packages debian-policy depends on:
ii  fileutils                     4.0.37-1   GNU file management utilities.    

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh

---------------------------------------
Received: (at 60979-close) by bugs.debian.org; 10 Mar 2003 19:33:21 +0000
>From troup@auric.debian.org Mon Mar 10 13:33:20 2003
Return-path: <troup@auric.debian.org>
Received: from auric.debian.org [206.246.226.45] (mail)
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 18sT1U-0006TQ-00; Mon, 10 Mar 2003 13:33:20 -0600
Received: from troup by auric.debian.org with local (Exim 3.35 1 (Debian))
	id 18sSgW-0005n0-00; Mon, 10 Mar 2003 14:11:40 -0500
From: Manoj Srivastava <srivasta@acm.org>
To: 60979-close@bugs.debian.org
X-Katie: lisa $Revision: 1.21 $
Subject: Bug#60979: fixed in debian-policy 3.5.9.0
Message-Id: <E18sSgW-0005n0-00@auric.debian.org>
Sender: James Troup <troup@auric.debian.org>
Date: Mon, 10 Mar 2003 14:11:40 -0500
Delivered-To: 60979-close@bugs.debian.org

We believe that the bug you reported is fixed in the latest version of
debian-policy, which is due to be installed in the Debian FTP archive:

debian-policy_3.5.9.0.dsc
  to pool/main/d/debian-policy/debian-policy_3.5.9.0.dsc
debian-policy_3.5.9.0.tar.gz
  to pool/main/d/debian-policy/debian-policy_3.5.9.0.tar.gz
debian-policy_3.5.9.0_all.deb
  to pool/main/d/debian-policy/debian-policy_3.5.9.0_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 60979@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Manoj Srivastava <srivasta@acm.org> (supplier of updated debian-policy package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Fri,  7 Mar 2003 12:35:16 -0600
Source: debian-policy
Binary: debian-policy
Architecture: source all
Version: 3.5.9.0
Distribution: unstable
Urgency: low
Maintainer: Debian Policy List <debian-policy@lists.debian.org>
Changed-By: Manoj Srivastava <srivasta@acm.org>
Description: 
 debian-policy - Debian Policy Manual and related documents
Closes: 60979 69864 87510 93975 103459 109166 170019 172022 174048 174927 177205 177206 177207 177208 177209 178455 181923 183544
Changes: 
 debian-policy (3.5.9.0) unstable; urgency=low
 .
   Josip:
   * Added missing bits of information about Description: fields from
     the old Packaging manual,                                   closes: #172022
   * Fixed a stale reference to the "base system maintainer" to
     base-passwd maintainer,                                     closes: #174927
   * Fixed an accidental change from /usr/share/package to /usr/share/doc in
     the paragraph about not depending on /usr/share/doc/package,
                                                                 closes: #174048
   * Fixed several errors reported by Guenther Palfinger, with some help from
     Richard Braakman,       closes: #177205, #177206, #177207, #177208, #177209
   * Added versions to links and docbook-xml source-dependencies, hopefully
     fixes the bug with potato, and even if it doesn't, I don't care :)
                                                                 closes: #103459
   * Fixed typos in the debconf spec noticed by Jay Bonci,       closes: #178455
   * Clarified that using Build-Depends for build-dependencies is not a "may"
     but a "should", added proper linking among various sections dealing with
     the dependencies so that there is no confusion,              closes: #87510
     If any one of those poor, misguided people ;) still thinks that the
     requirement should be a "must" (in _our_ meaning, not RFC "MUST"),
     please file a new bug, as it's quite unproductive to have to sift
     through a 152-page bug log which mostly goes back-and-forth with
     explanations how policy should work, occasionally sprinkled with
     offtopic stuff, too.
   * When asked to restart a service that isn't already running, the init
     script should start it,                                      closes: #60979
   * Rephrased section on configuration files to remove confusing use of
     "should",                                                   closes: #170019
   * Rearranged the shared library information properly,         closes: #109166
     This change also centralizes the info on how to ship static libraries
     in one place (hopefully not too ambiguous),                  closes: #93975
   * Allow examples to be placed in /usr/share/doc/package/ in packages
     that are meant to provide examples,                          closes: #69864
   * Removed several references to the Policy manual etc in the stuff
     imported from old packaging manual,                         closes: #181923
   * Fixed too greedy wildcard match in the logrotate example,
                                                                 closes: #183544
Files: 
 c681573847ca95f0a8290957aaea7a36 833 doc optional debian-policy_3.5.9.0.dsc
 7111f544864e257532b3ed1bca84ee0f 572699 doc optional debian-policy_3.5.9.0.tar.gz
 40a7998a2cd2a7450562e7043fefadb0 609728 doc optional debian-policy_3.5.9.0_all.deb
 6d3fe9ffc9bdddd1950b5949ecf7fc86 95043 byhand - policy.txt.gz
 bf03d5508abc7273970e3fe2d5edcbbc 2118 byhand - menu-policy.txt.gz
 e2515b142d71ad7841f2a44cfe15cc22 1560 byhand - mime-policy.txt.gz
 3b2b8b544f7c1d0b700b5f0638ad023c 4496 byhand - policy-process.txt.gz
 53d59d382f2cca63440a7cb88d945da2 4424 byhand - perl-policy.txt.gz
 8f37c6c419260b2502e8d8ab5fce3ea9 105217 byhand - policy.html.tar.gz
 2ccd5b318e61304a1afc07d5a1cd01be 2724 byhand - menu-policy.html.tar.gz
 f9f5ac8b0239f8fead8f6b26640c65ea 2143 byhand - mime-policy.html.tar.gz
 892413f781d93a366ef22508c2e4102b 5191 byhand - policy-process.html.tar.gz
 d7b73a28044fa30aa5facb232dc002f6 5794 byhand - perl-policy.html.tar.gz
 aab901eeedcd23ae6d56c91ede2649eb 6363 byhand - debconf_specification.txt.gz
 a2c4b60651949b84c4ad2b8f74df3cc2 35535 byhand - debconf_specification.html
 3ed7aa5a489834b24bb28ff377a34aa9 10982 byhand - libc6-migration.txt
 7c6c1d1be799f750ad8085e0d3eecad8 9288 byhand - virtual-package-names-list.txt
 3079b137ed179f5ceb8dd845867621c5 210466 byhand - policy.ps.gz
 8a54af210e6cff6c85c98e7f84a1a3f0 435238 byhand - policy.pdf.gz
 58e0adf3c1aff158d12b1d686b82ebee 18890 byhand - upgrading-checklist.txt
 93679f707ec4cbc94b6f667afb1f2600 34997 byhand - fhs-2.1.html.tar.gz
 02153a8048e28d94dd72c0cbcf0c1816 98312 byhand - fhs.txt

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+aPbEIbrau78kQkwRAqEEAJ0VPXWeSlp7ARD3N/hX5WjVuW2hfwCfVeP0
XZ3hFwBOUsv1vHlj6C4O8Yc=
=g488
-----END PGP SIGNATURE-----



Reply to: