Package: lsb-base
Version: 3.2-19
Severity: normal
File: /lib/lsb/init-functions

According to the BTS [1], the new status_of_proc method should
behave as specified by the LSB [2].

When using this function though, I noticed that this function return 4,
when the service is not running (LSB says, it should use 3 in that
case). A simple way to reproduce this, is to use the up-to-date openssh
package:

pluto:~# /etc/init.d/ssh start
Starting OpenBSD Secure Shell server: sshd.
pluto:~# /etc/init.d/ssh status
sshd is running.
pluto:~# echo $?
0
pluto:~# /etc/init.d/ssh stop
Stopping OpenBSD Secure Shell server: sshd.
pluto:~# /etc/init.d/ssh status
sshd is not running failed!
pluto:~# echo $?
4 <-- should probaby be 3, as the output clearly says that the program
is not running, and not that the status is unknown.


Cheers,
Michael

[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=483285
[2]
http://refspecs.freestandards.org/LSB_3.1.0/LSB-Core-generic/LSB-Core-generic/iniscrptact.html



-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (300, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.26.2
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages lsb-base depends on:
ii  ncurses-bin               5.6+20080804-1 terminal-related programs and man 
ii  sed                       4.1.5-8        The GNU sed stream editor

lsb-base recommends no packages.

lsb-base suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to