Bug 1589822

Summary: CentOS 7 is using rhnsd.init instead of rhnsd.service
Product: [Community] Spacewalk Reporter: Mario Mikocevic <mario.mikocevic>
Component: ClientsAssignee: Tomáš Kašpárek <tkasparek>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: low Docs Contact:
Priority: unspecified    
Version: 2.8   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Other   
Whiteboard:
Fixed In Version: rhnsd-5.0.40-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-01-15 07:59:28 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1653216    

Description Mario Mikocevic 2018-06-11 12:57:03 UTC
Description of problem:
CentOS 7 is using rhnsd.init instead of rhnsd.service
and appropriate service definition file is missing from rpm

Version-Release number of selected component (if applicable):
# rpm -qvil rhnsd
Name        : rhnsd
Version     : 5.0.37
Release     : 1.el7.centos
-rwxr-xr-x    1 root    root                     2437 Mar 19 10:51 /etc/rc.d/init.d/rhnsd
drwxr-xr-x    2 root    root                        0 Mar 19 11:02 /etc/sysconfig/rhn
-rw-r--r--    1 root    root                       13 Mar 19 10:51 /etc/sysconfig/rhn/rhnsd
-rwxr-xr-x    1 root    root                    19632 Mar 19 11:02 /usr/sbin/rhnsd
drwxr-xr-x    2 root    root                        0 Mar 19 11:02 /usr/share/doc/rhnsd-5.0.37
-rw-r--r--    1 root    root                    18092 Mar 19 10:51 /usr/share/doc/rhnsd-5.0.37/LICENSE
-rw-r--r--    1 root    root                      417 Mar 19 11:02 /usr/share/locale/foobars
-rw-r--r--    1 root    root                     1458 Mar 19 11:02 /usr/share/man/man8/rhnsd.8.gz

Actual results:

# systemctl status rhnsd
● rhnsd.service - LSB: Starts the Spacewalk Daemon
   Loaded: loaded (/etc/rc.d/init.d/rhnsd; bad; vendor preset: disabled)
   Active: active (running) since Mon 2018-06-11 10:09:01 CEST; 4h 45min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 18735 ExecStop=/etc/rc.d/init.d/rhnsd stop (code=exited, status=0/SUCCESS)
  Process: 18746 ExecStart=/etc/rc.d/init.d/rhnsd start (code=exited, status=0/SUCCESS)
 Main PID: 18755 (rhnsd)
   CGroup: /system.slice/rhnsd.service
           └─18755 rhnsd


Expected results:

# systemctl status rhnsd
● rhnsd.service - Spacewalk Server daemon
   Loaded: loaded (/usr/lib/systemd/system/rhnsd.service; enabled; vendor preset: disabled)
   Active: active (running) since Tue 2018-06-05 11:50:12 CEST; 6 days ago
 Main PID: 6602 (rhnsd)
   CGroup: /system.slice/rhnsd.service
           └─6602 rhnsd

Comment 1 Tomáš Kašpárek 2018-06-29 11:18:25 UTC
Hello,

I am aware of it and I even have some patches which are replacing rhnsd with systemd timer. However this is at the moment lower priority issue for us as rhnsd is working even as init.
Thank you for reporting the issue ;)

Comment 2 Tomáš Kašpárek 2018-08-07 09:27:57 UTC
spacewalk.git(master): db0f1e626b63cd4beec03fee2f42ae611e5a5d51

Comment 3 Michael Mráka 2018-11-26 09:44:04 UTC
Move Spacewalk 2.9 bugs ON_QA.

Comment 4 Michael Mráka 2019-01-15 07:59:28 UTC
Spacewalk 2.9 has been released.
https://github.com/spacewalkproject/spacewalk/wiki/ReleaseNotes29