Package: and
Version: 1.2.2-1
Followup-For: Bug #367997
You asked for more information in the bug report, so I will try to
give some.
The problem is simply that "/etc/init.d/and start" exits with a
non-zero exit code if and is already running. This is the expected
behaviour of the code your using and easily reproducible:
[EMAIL PROTECTED]:~$ sudo /etc/init.d/and stop
Stopping auto nice daemon: and.
[EMAIL PROTECTED]:~$ sudo /etc/init.d/and start
Starting auto nice daemon: and.
[EMAIL PROTECTED]:~$ sudo /etc/init.d/and start
Starting auto nice daemon: [EMAIL PROTECTED]:~$
[EMAIL PROTECTED]:~$ echo $?
1
Policy 9.3.2 defines:
"The init.d scripts should ensure that they will behave sensibly if
invoked with start when the service is already running".
Since this is only a "should", this bug isn't a policy violation, but
it should be fixed never-the-less. An easy way to do this would be to
use a newer init.d script template (as found in /etc/init.d/skeleton).
It already contains the code to do the right thing in a case like this.
I guess the reason why this appeared during upgrades is bug
"#360713: etc/init.d/and stop does not stop and"
Gruesse,
Frank Lichtenheld
-- System Information:
Debian Release: testing/unstable
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1,
'experimental')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-1-k7
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Versions of packages and depends on:
ii libc6 2.3.6-7 GNU C Library: Shared libraries
and recommends no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]