Bug 1091025

Summary: RFE: replace rhnsd with system.timer unit file
Product: [Community] Spacewalk Reporter: Miroslav Suchý <msuchy>
Component: ClientsAssignee: Tomáš Kašpárek <tkasparek>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: low Docs Contact:
Priority: low    
Version: 2.2CC: jochen, msuchy
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-01-15 07:59:23 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: 737830, 1653216    
Attachments:
Description Flags
rhnsd.timer
none
rhnsd.service none

Description Miroslav Suchý 2014-04-24 16:05:13 UTC
Description of problem:
Whole rhnsd is just sort of cron.
In Fedora and RHEL7 you can replace whole rhnsd by system.timer unit file and some bash file which check for systemIdPath in 
/etc/sysconfig/rhn/up2date and if that systemid file is readable. And if yes, run rhn_check.
Then whole binary of rhnsd can be removed and it does not need to be persistent in memory.

Comment 1 Jan Pazdziora 2014-04-26 12:11:39 UTC
How do you propose to handle the randomization feature of rhnsd with .timer?

Comment 2 Miroslav Suchý 2014-06-17 08:41:17 UTC
Using AccuracySec?

http://www.freedesktop.org/software/systemd/man/systemd.timer.html#AccuracySec=

Comment 3 Tomasz Torcz 2015-01-15 17:03:52 UTC
Created attachment 980574 [details]
rhnsd.timer

Comment 4 Tomasz Torcz 2015-01-15 17:04:47 UTC
Created attachment 980575 [details]
rhnsd.service

I believe those two unit files fully replace rhnsd.

Comment 5 Tomasz Torcz 2016-04-29 17:04:34 UTC
RandomizedDelaySec= is even better than AccuracySec.

Comment 6 Tomáš Kašpárek 2018-11-26 09:51:15 UTC
spacewalk.git(master):
184b1c55e666dd99d3b48916fe9def20d4b354a8
ad57d1fb6ed6cb8ea09b4565786fcb1bfa14ff01
005bfbe00f801e22d8cd93ede9108d1dc3668416
26e37b41f6224eae066f02fd78fad49f691060e1

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