[Unit]
Description=Performance Metrics Archive Logger
Documentation=man:pmlogger(1)
After=network-online.target pmcd.service
After=pmlogger_check.timer pmlogger_daily.timer pmlogger_daily-poll.timer
BindsTo=pmlogger_check.timer pmlogger_daily.timer pmlogger_daily-poll.timer

[Service]
Type=notify
NotifyAccess=all
TimeoutSec=120
Restart=always
ExecStart=/usr/share/pcp/lib/pmlogger start-systemd
ExecStop=/usr/share/pcp/lib/pmlogger stop
PIDFile=/run/pcp/pmlogger.pid

[Install]
WantedBy=multi-user.target
