Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 649478

Summary: app-crypt/ekeyd systemd service file should be of Type=forking
Product: Gentoo Linux Reporter: Lucas Yamanishi <lucas.yamanishi>
Component: Current packagesAssignee: Kristian Fiskerstrand (RETIRED) <k_f>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Lucas Yamanishi 2018-03-03 19:27:49 UTC
The daemon for ekeyd forks and creates a PID file with no option to run in the foreground, however it's current service file does not indicate this behavior.  Because of this, it can fail to start with systemd.  This is easily fixed with the following patch:

```diff
--- app-crypt/ekeyd/files/ekeyd.service 2015-08-08 20:38:18.000000000 -0400
+++ app-crypt/ekeyd/files/ekeyd.service.new 2018-03-03 13:47:30.532002927 -0500
@@ -3,6 +3,8 @@

 [Service]
 ExecStart=/usr/libexec/ekeyd
+Type=forking
+PIDFile=/var/run/ekeyd.pid

 [Install]
 WantedBy=multi-user.target`

```
Comment 1 Larry the Git Cow gentoo-dev 2018-03-21 19:56:17 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c766d91b70819666658681fb5fc7c113ffdd5bb7

commit c766d91b70819666658681fb5fc7c113ffdd5bb7
Author:     Kristian Fiskerstrand <k_f@gentoo.org>
AuthorDate: 2018-03-21 19:55:59 +0000
Commit:     Kristian Fiskerstrand <k_f@gentoo.org>
CommitDate: 2018-03-21 19:55:59 +0000

    app-crypt/ekeyd: Fixes for systemd service file
    
    Closes: https://bugs.gentoo.org/649478
    Package-Manager: Portage-2.3.24, Repoman-2.3.6

 app-crypt/ekeyd/files/ekeyd.service | 2 ++
 1 file changed, 2 insertions(+)