[Unit]
Description=Check pmlogger instances are running
Documentation=man:pmlogger_check(1)
ConditionPathExists=!/etc/cron.d/pcp-pmlogger

[Service]
Type=oneshot
TimeoutStartSec=25m
Environment="PMLOGGER_CHECK_PARAMS=-C"
EnvironmentFile=-/etc/sysconfig/pmlogger_timers
ExecStart=/usr/lib/pcp/bin/pmlogger_check $PMLOGGER_CHECK_PARAMS
User=pcp
