This problem is not actually with the nginx init script (or with the scripts of other packages). This is actually a problem of the /lib/lsb/init-functions script.
The problem here seems to be that in the latest update of lsb for Jaunty and Hardy ( 4.0-0), which is the same version in karmic, looks like that the init-functions script was not updated accordingly.
Something I've done to verify this, is that I've replaced the "init-functions" script (/lib/lsb/init-functions) in Jaunty, with the one provided in the Karmic package. By doing so, all init scripts returned 3 instead of 4. You could try this as well to verify the same thing. I'll be reporting a bug against to fix this in Jaunty.
Thanks for your report, which has lead us to find this bug.
Hello Michael,
This problem is not actually with the nginx init script (or with the scripts of other packages). This is actually a problem of the /lib/lsb/ init-functions script.
The problem here seems to be that in the latest update of lsb for Jaunty and Hardy ( 4.0-0), which is the same version in karmic, looks like that the init-functions script was not updated accordingly.
Something I've done to verify this, is that I've replaced the "init-functions" script (/lib/lsb/ init-functions) in Jaunty, with the one provided in the Karmic package. By doing so, all init scripts returned 3 instead of 4. You could try this as well to verify the same thing. I'll be reporting a bug against to fix this in Jaunty.
Thanks for your report, which has lead us to find this bug.
Cheers