You are not logged in.

#1 2016-03-22 14:47:07

Skitter
Member
Registered: 2013-09-28
Posts: 36

[SOLVED] Mailgraph service stops for no reason

I installed mailgraph on my mail server (postfix + dovecot). After starting the mailgraph.service daemon it works fine for some time. The RRD database is updated periodically:

systemctl status mailgraph -l   
● mailgraph.service
   Loaded: loaded (/usr/lib/systemd/system/mailgraph.service; enabled; vendor preset: disabled)
   Active: active (running) since Tue 2016-03-22 15:38:47 CET; 1s ago
 Main PID: 9552 (bash)
    Tasks: 2 (limit: 512)
   CGroup: /system.slice/mailgraph.service
           ├─9552 /bin/bash -c LANG=C /usr/bin/journalctl -af | /usr/bin/mailgraph.pl -c --daemon-rrd /v
           └─9557 /usr/bin/journalctl -af

Mar 22 15:38:47 systemd[1]: Started mailgraph.service.

Unfortunately the service stops after some time without any error (the log is clear):

systemctl status mailgraph
● mailgraph.service
   Loaded: loaded (/usr/lib/systemd/system/mailgraph.service; enabled; vendor preset: disabled)
   Active: inactive (dead) since Tue 2016-03-22 15:28:57 CET; 9min ago
  Process: 8748 ExecStart=/bin/bash -c LANG=C /usr/bin/journalctl -af | /usr/bin/mailgraph.pl -c --daemo
 Main PID: 8748 (code=exited, status=0/SUCCESS)

Mar 22 15:22:45 systemd[1]: Started mailgraph.service.

And of course the RRD file stops being updated. I have to start the service manually again. Maybe I misunderstood the way of how the mailgraph service works. Am I missing something?

Last edited by Skitter (2016-03-24 11:41:06)

Offline

#2 2016-03-24 11:40:34

Skitter
Member
Registered: 2013-09-28
Posts: 36

Re: [SOLVED] Mailgraph service stops for no reason

I solved the problem by editing the mailgraph.service file and changing the ExecStart line to:

ExecStart=/usr/bin/mailgraph.pl -l /var/log/mail.log --daemon-rrd /var/lib/mailgraph

Last edited by Skitter (2016-03-24 11:40:48)

Offline

Board footer

Powered by FluxBB