Bug 20189

Summary: Incorrect PID file in systemd service
Product: Mageia Reporter: Juan Magallon <jamagallon>
Component: RPM PackagesAssignee: Johnny A. Solbu <cooker>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: jamagallon, marja11
Version: CauldronKeywords: Triaged
Target Milestone: ---   
Hardware: All   
OS: Linux   
See Also: https://bugs.mageia.org/show_bug.cgi?id=23551
Whiteboard:
Source RPM: denyhosts-3.0-5.mga6.src.rpm CVE:
Status comment:

Description Juan Magallon 2017-01-27 00:23:48 CET
In shipped denyhosts.conf, the pid file is set as:

LOCK_FILE = /var/run/denyhosts.pid

But in systemd service file, it is named like:

PIDFile=/var/run/denyhosts

So systemd awaits forever for the PID file to appear...

Besides that, in one of my systems journalctl happened to not being
redirected to syslog, so auth.log got no log for failed ssh login attempts.
Is there an easy way for this package on install to check that journal
is correctly forwarded to syslog ?
Or perhaps denyhosts can read a journald/systemd log instead of auth.log ?

TIA
Comment 1 Juan Magallon 2017-01-27 00:31:42 CET
It looks like the systemd unit bug is corrected in version 3.1 upstream
(cauldron has 3.0).
Could we have it updated ?

Thanks.

CC: (none) => jamagallon

Comment 2 Marja Van Waes 2017-01-27 08:42:18 CET
(In reply to JA Magallón from comment #1)
> It looks like the systemd unit bug is corrected in version 3.1 upstream
> (cauldron has 3.0).
> Could we have it updated ?
> 
> Thanks.

Assigning to the registered maintainer.

Keywords: (none) => Triaged
CC: (none) => marja11
Assignee: bugsquad => cooker

Comment 3 Johnny A. Solbu 2017-10-23 20:02:29 CEST
(In reply to Juan Magallon from comment #0)
> In shipped denyhosts.conf, the pid file is set as:
> 
> LOCK_FILE = /var/run/denyhosts.pid
> 
> But in systemd service file, it is named like:
> 
> PIDFile=/var/run/denyhosts
> 
> So systemd awaits forever for the PID file to appear...

Sorry for the long delay.
Should be fixed in Cauldron. Just pushed the new version.

> Besides that, in one of my systems journalctl happened to not being
> redirected to syslog, so auth.log got no log for failed ssh login attempts.

You need to start rsyslog. It should be installed as a dependency, but you need to enable it.
Johnny A. Solbu 2018-09-11 21:26:29 CEST

Status: NEW => ASSIGNED
See Also: (none) => https://bugs.mageia.org/show_bug.cgi?id=23551

Comment 4 Johnny A. Solbu 2018-09-21 21:02:57 CEST
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2018-0154.html

Resolution: (none) => FIXED
Status: ASSIGNED => RESOLVED