[Unit]
Description=CFEngine Enterprise Hub Report Collector
PartOf=cfengine3.service
ConditionPathExists={{{vars.sys.bindir}}}/cf-hub
After=syslog.target
After=network.target

[Service]
Type=simple
ExecStart={{{vars.sys.bindir}}}/cf-hub -F --verbose
Restart=always
RestartSec=10

[Install]
WantedBy=multi-user.target
WantedBy=cfengine3.service
