Bug ID 931388
Summary call of /etc/init.d/* status gives wrong return code 0
Classification openSUSE
Product openSUSE Distribution
Version 13.2
Hardware x86-64
OS openSUSE 13.2
Status NEW
Severity Normal
Priority P5 - None
Component Basesystem
Assignee bnc-team-screening@forge.provo.novell.com
Reporter joerg.seymer@polizei.sachsen.de
QA Contact qa-bugs@suse.de
Found By ---
Blocker ---

The call of a init-script (for instance /etc/init.d/nfsserver) with parameter
"status" returns 0 even if no services are running. 
The reason is that the systemctl wrapper in /etc/rc.status calls "systemctl
status ..." last, which everytime returns 0.

Using SYSTEMD_NO_WRAP=1 solves the problem, but many other packages (for
instance resource-agents) don't know this.

I think there are two possible solutions:
- solve systemctl status return code (see Bug 901796) 
- change /etc/rc.d to return the code from init-script


You are receiving this mail because: