Bug 1091025 - RFE: replace rhnsd with system.timer unit file
Summary: RFE: replace rhnsd with system.timer unit file
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Spacewalk
Classification: Community
Component: Clients
Version: 2.2
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
Assignee: Tomáš Kašpárek
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: spacewalk-rfe space29
TreeView+ depends on / blocked
 
Reported: 2014-04-24 16:05 UTC by Miroslav Suchý
Modified: 2019-01-15 07:59 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2019-01-15 07:59:23 UTC
Embargoed:


Attachments (Terms of Use)
rhnsd.timer (211 bytes, text/plain)
2015-01-15 17:03 UTC, Tomasz Torcz
no flags Details
rhnsd.service (172 bytes, text/plain)
2015-01-15 17:04 UTC, Tomasz Torcz
no flags Details

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 (Red Hat) 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


Note You need to log in before you can comment on or make changes to this bug.