Bug 2342274 - Please change unbound service type into "notify"
Summary: Please change unbound service type into "notify"
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: unbound
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Paul Wouters
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-01-27 15:38 UTC by Tomas Korbar
Modified: 2025-02-18 12:30 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-02-18 12:30:45 UTC
Type: ---
Embargoed:
tkorbar: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker FC-1420 0 None None None 2025-01-27 15:40:19 UTC
Red Hat Issue Tracker FC-1421 0 None None None 2025-01-27 15:45:05 UTC

Description Tomas Korbar 2025-01-27 15:38:41 UTC
Hi,
currently unbound service type is "simple" that means the unit is considered started when systemd's fork call succeeds. This is problematic as if you want to start another service only after unbound is running, then you have to poll. If unbound was "notify" service then the synchronization would work as expected.

Reproducible: Always

Steps to Reproduce:
You can try to create service that "Wants=unbound.service" but that would not work always as there is naturally a race. So simply switch unbound service to notify, build it with libsystemd support or otherwise write to appropriate socket and verify that systemctl start unbound.service works, as service without stating "READY=1" should not be able to start.
Actual Results:  
unbound.service is "simple" service

Expected Results:  
unbound.service is "notify" service

Comment 1 Tomas Korbar 2025-02-18 12:30:45 UTC
Fixed in rawhide.


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