Your message dated Sat, 21 Apr 2012 00:52:18 +0100
with message-id <[email protected]>
and subject line Close old and unfixable sysvinit bugs
has caused the Debian Bug report #243159,
regarding invoke-rc.d: Please support manual control by adding policy for 
try-restart
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 this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
243159: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=243159
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: sysv-rc
Version: 2.85-15
Severity: wishlist

People are clamoring for Debian packages to support "manual control"
of services.  To put a service in manual-control mode in a given
runlevel, the service is configured in that runlevel as "floating" --
i.e., there are no symlinks for it in the relevant rc?.d.  The
absence of S and K symlinks means that the status of the service will
not be affected on runlevel change.  The service is started and
stopped by executing the initscript from the command line with a
"start" or "stop" argument.

What is missing for this to work flawlessly is support for restarting
services on package upgrade.  A maintainer who wants his package to
support manual-control mode has to implement the try-restart method
in the initscript.  This is the method that restarts the service if
and only if it is currently running.  The package postinst runs the
initscript with argument "try-restart" to restart the service.

The only problem is that the package also has to support traditional
init system control too.  This is done by doing restart (or stop and
then start) via the invoke-rc.d command.

What is needed in order to provide support for both traditional and
manual control modes is an enhancement to invoke-rc.d to support the
"try-restart" method.  The following policy should govern the
try-restart method.

  service status                result of try-restart request
  ==============                =============================
  floating (i.e., no symlinks)  try-restart
  enabled (i.e., S symlink)     restart
  disabled (i.e., K symlink)    stop

Once invoke-rc.d implements this policy, a package that supports
manual control mode can simply do:

    invoke-rc.d foo try-restart

in the postinst and the right thing will happen whether the service
is enabled, disabled or floating in the current runlevel.
--
Thomas Hood

________________________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping" 
your friends today! Download Messenger Now 
http://uk.messenger.yahoo.com/download/index.html


--- End Message ---
--- Begin Message ---
This bug is being closed as part of a cleanup of the old bug
reports in the sysvinit package, in an attempt to make it easier
to address the bug reports which actually are fixable.  Some
reasons:

- Not a bug and/or it's a patch which will not be applied
- It will not be fixed, ever for various reasons
- Problem is not fixable in sysvinit or not our responsibility
- A better solution has become available in the interim
- No activity or submitter response in over a decade or more


Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux             http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?       http://gutenprint.sourceforge.net/
   `-    GPG Public Key: 0x25BFB848   Please GPG sign your mail.


--- End Message ---
_______________________________________________
Pkg-sysvinit-devel mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-sysvinit-devel

Reply via email to