[Unit]
Description=CFEngine 3 Mission Portal daemons
Documentation=https://docs.cfengine.com
After=syslog.target
After=network.target
PartOf=cfengine3.service
ConditionPathExists=@workdir@/bin/cfengine3-nova-hub-init-d.sh

[Service]
Type=forking
EnvironmentFile=@OS_ENVIRONMENT_PATH@/cfengine3
Environment="CF_ONLY_WEB_SERVICES=1"
ExecStart=/etc/init.d/cfengine3 start
ExecStop=/etc/init.d/cfengine3 stop

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