[lsb-discuss] Suggested patches: backout reload status change, allow atomic restart, remove --version

Tobias Burnus tobias.burnus at physik.fu-berlin.de
Wed Aug 20 09:41:46 PDT 2003


Hello all,

here are some suggested patches:
a) [important] Back-out change of (force-)reload returning success (0) if
   not running
b) [enhancement] Allow atomic behaviour of (try-)restart and (force-)reload
c) [enhancement] Remove all LSB depreciated --version/--help options in
   command behaviour

A detailed description can be found below

Tobias


*** gLSB: Sysinit: Init actions: Revert (force-)reload status if not running
Severity: High
gLSB-1.3: http://www.linuxbase.org/spec/refspecs/LSB_1.3.0/gLSB/gLSB/iniscrptact.html
gLSB-1.9: http://www.linuxbase.org/spec/gLSB/gLSB/iniscrptact.html
Discussion:
  http://freestandards.org/pipermail/lsb-discuss/2003-August/001739.html
  http://freestandards.org/pipermail/lsb-discuss/2003-August/001745.html

Patch: sysinit-revert-reload-status.diff
  Goes back to the previous status by removing
  - running "reload" on a service already stopped or not running
  - running "force-reload" on a service already stopped or not running
  from the actions that should be regarded as SUCCESSFUL (status code 0),
  i.e. a "program is not running" (7) should (again) be returned.

Reasoning:
  Previous behaviour is widely used and gives more details about the
  status. Making only needed changes is also a plus!
  Especially since there is no convincing reason for this change.



*** gLSB: Sysinit: Init actions: Allow (try-)restart to be atomic
Severity: Enhancement
gLSB-1.3: http://www.linuxbase.org/spec/refspecs/LSB_1.3.0/gLSB/gLSB/iniscrptact.html
gLSB-1.9: http://www.linuxbase.org/spec/gLSB/gLSB/iniscrptact.html
Discussion:
  http://freestandards.org/pipermail/lsb-discuss/2003-August/001729.html
  [...]
  http://freestandards.org/pipermail/lsb-discuss/2003-August/001748.html

Patch: sysinit-atomic-restart.diff
  Adds "The restart, try-restart, reload and force-reload action
  may be atomic; i.e. if a service is known not be operational after
  a restart or reload, the script may return an error without any
  further action."

Reasoning:
  It makes sense for programs like sshd which offer the possibility
  to test the configfiles for errors. Especially when ssh is used
  for remote administration. Proposed by Caldera.

Note: This does not force the use of atomic reload. Is the exit status
code clear in this case?



*** Commands: Remove depreciated --help and --version
Severity: Enhancement
gLSB-1.3: http://www.linuxbase.org/spec/refspecs/LSB_1.3.0/gLSB/gLSB/cmdbehav.html
gLSB-1.9: http://www.linuxbase.org/spec/gLSB/gLSB/cmdbehav.html
LSB  Bug: [ 789226 ] Drop --help/--version for LSB 2.0

http://sourceforge.net/tracker/index.php?func=detail&aid=789226&group_id=1107&atid=101107
Discussion:
  http://freestandards.org/pipermail/lsb-discuss/2003-August/001749.html

Patch: commands-remove--version.diff
  Removes --version, -V/-v (where used to show the version), --help
  (where used for showing the help) from the LSB depreciated section of
the
  command behaviour. Non-depreciated --version's have been left untouched.

Reasoning: They are deprecitated since 1.2, not needed to use the
  commands (especially true for --version) and are for some commands the
  only difference to the SUS.

Note: This will only affect applications which want to be LSB 2.0 conform
  and since >90% use the GNU tools anyway even --version/--help will
  continue work on LSB 2.0 systems.
Note: If it is too late for 1.9 it could still be used for 2.0 which
  should get some further cleaning.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: sysinit-revert-reload-status.diff
Url: http://lists.linux-foundation.org/pipermail/lsb-discuss/attachments/20030820/00d5c59d/attachment.txt 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: sysinit-atomic-restart.diff
Url: http://lists.linux-foundation.org/pipermail/lsb-discuss/attachments/20030820/00d5c59d/attachment-0001.txt 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: commands-remove--version.diff
Url: http://lists.linux-foundation.org/pipermail/lsb-discuss/attachments/20030820/00d5c59d/attachment-0002.txt 


More information about the lsb-discuss mailing list