Bug 2148555

Summary: Suggestion: add -D in ssh-agent service definition to make the type "simple"
Product: [Fedora] Fedora Reporter: Göran Uddeborg <goeran>
Component: opensshAssignee: Dmitry Belyavskiy <dbelyavs>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: rawhideCC: crypto-team, dbelyavs, dwalsh, jjelen, lkundrak, mattias.ellert, tm
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openssh-9.3p1-8.fc39 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-08-03 11:06:09 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:

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.