Bug 2148555 - Suggestion: add -D in ssh-agent service definition to make the type "simple"
Summary: Suggestion: add -D in ssh-agent service definition to make the type "simple"
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: openssh
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: Dmitry Belyavskiy
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-11-25 21:57 UTC by Göran Uddeborg
Modified: 2023-08-03 11:06 UTC (History)
7 users (show)

Fixed In Version: openssh-9.3p1-8.fc39
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-08-03 11:06:09 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker FC-668 0 None None None 2022-11-25 22:20:27 UTC

Description Göran Uddeborg 2022-11-25 21:57:39 UTC
The systemd.service manual page recommends using "Type=simple" whenever possible. The systemd service manager works best with processes that do not forks and exits in the parent but rather just runs. By adding -D on the ExecStart line in ssh-agent-service ssh-agent will do this, and the type of the service can be changed to "simple".

Comment 1 Dmitry Belyavskiy 2022-11-29 14:21:18 UTC
Sorry, it doesn't look like a good universal solution.

Comment 2 Dmitry Belyavskiy 2022-11-29 17:23:55 UTC
I was wrong closing this bug. Please apologize me.

At least Debian runs ssh-agent with -D so we also need to consider this decision. Thank you for bringing it and thanks to Jakub for fixing my fault.

Comment 3 Ben Cotton 2023-02-07 14:59:54 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 38 development cycle.
Changing version to 38.

Comment 4 Fedora Update System 2023-08-03 09:24:24 UTC
FEDORA-2023-64f8335634 has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-64f8335634

Comment 5 Fedora Update System 2023-08-03 11:06:09 UTC
FEDORA-2023-64f8335634 has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.


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