Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#43252 - [mailgraph] Update mailgraph.target to use journalctl instead of syslog

Attached to Project: Community Packages
Opened by Bernhard Kainz (bka) - Sunday, 28 December 2014, 11:37 GMT
Last edited by Florian Pritz (bluewind) - Monday, 29 December 2014, 20:10 GMT
Task Type Feature Request
Category Packages
Status Closed
Assigned To Florian Pritz (bluewind)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Actually mailgraph will not work with systemd/journalctl. To change this /usr/lib/systemd/system/mailgraph.target has to be updated like this:

diff mailgraph.service mailgraph.service.upto20141228
2c2,4
< ExecStart=/bin/bash -c 'LANG=C /usr/bin/journalctl -af | /usr/bin/mailgraph.pl -c --daemon-rrd /var/lib/mailgraph -l -'
---
> ExecStart=/usr/bin/mailgraph.pl -l /var/log/everything.log --daemon-rrd /var/lib/mailgraph
> # FIXME: doesn't work
> #ExecStart=/bin/bash -c '/usr/bin/journalctl -af | /usr/bin/mailgraph.pl -c -l -'


Additional info:
* package version(s): community/mailgraph 1.14-3
This task depends upon

Closed by  Florian Pritz (bluewind)
Monday, 29 December 2014, 20:10 GMT
Reason for closing:  Implemented
Additional comments about closing:  mailgraph 1.14-4
Comment by Florian Pritz (bluewind) - Sunday, 28 December 2014, 15:34 GMT
There is no mailgraph.target, only mailgraph.service. Also please provide a unified diff (diff -u), I can't read ed script. If you resend the patch as a unified diff I'll take a look.
Comment by Bernhard Kainz (bka) - Sunday, 28 December 2014, 17:07 GMT
Hi Florian,

sorry, my mistake, yes I meant the mailgraph.service. Here is a diff -u form a fresh installation:

diff -u mailgraph.service.upto20141228 mailgraph.service
--- mailgraph.service.upto20141228 2014-12-28 18:02:00.841633188 +0100
+++ mailgraph.service 2014-12-28 18:02:36.341573751 +0100
@@ -1,5 +1,5 @@
[Service]
-ExecStart=/usr/bin/mailgraph.pl -l /var/log/everything.log --daemon-rrd /var/lib/mailgraph
+ExecStart=/bin/bash -c 'LANG=C /usr/bin/journalctl -af | /usr/bin/mailgraph.pl -c --daemon-rrd /var/lib/mailgraph -l -'
# FIXME: doesn't work
#ExecStart=/bin/bash -c '/usr/bin/journalctl -af | /usr/bin/mailgraph.pl -c -l -'

Do you need more information?

Bernhard

Loading...