Description of problem: service rhnsd [whatever] fails with exit code 6 when system is registered (according to systemIdPath=/path/to/systemId in /etc/sysconfig/rhn/up2date) but systemId file (/path/to/systemId) does not exists. Version-Release number of selected component (if applicable): rhnsd-4.7.0-10.el5 How reproducible: always if situation is like described above Steps to Reproduce: 1. register system to Spacewalk (obtain systemId, update /etc/sysconfig/rhn/up2date) 2. brute force unregistering system (remove /path/to/systemId) 3. service rhnsd {start|stop|status|restart|condrestart|reload} exits with 6 Actual results: service rhnsd * exits with 6 Expected results: should return some valuable information (about need to register system, remove not valid /path/to/systemId from /etc/sysconfig/rhn/up2date, ...) Additional info:
According to http://fedoraproject.org/wiki/Packaging:SysVInitScript#Exit_Codes_for_non-Status_Actions the exist status 6 is exactly what we are supposed to return when the program is not configured. Closing as NOTABUG, please reopen if you disagree.