Bug 20189 - Incorrect PID file in systemd service
Summary: Incorrect PID file in systemd service
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Johnny A. Solbu
QA Contact:
URL:
Whiteboard:
Keywords: Triaged
Depends on:
Blocks:
 
Reported: 2017-01-27 00:23 CET by Juan Magallon
Modified: 2018-09-21 21:02 CEST (History)
2 users (show)

See Also:
Source RPM: denyhosts-3.0-5.mga6.src.rpm
CVE:
Status comment:


Attachments

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


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