[Unit]
Description=CFEngine Enterprise Webserver
After=syslog.target
Wants=cf-postgres.service
After=cf-postgres.service
ConditionPathExists=@workdir@/httpd/bin/apachectl
PartOf=cfengine3.service

[Service]
Type=forking
ExecStart=@workdir@/httpd/bin/apachectl start
ExecStop=@workdir@/httpd/bin/apachectl stop
ExecReload=@workdir@/httpd/bin/apachectl graceful
PIDFile=@workdir@/httpd/httpd.pid
Restart=always
RestartSec=10
UMask=0177

[Install]
WantedBy=multi-user.target
