1[Unit] 2Description=CFEngine Enterprise Webserver 3After=syslog.target 4After=cf-postgres.service 5Requires=cf-postgres.service 6ConditionPathExists=@workdir@/httpd/bin/apachectl 7PartOf=cfengine3.service 8 9[Service] 10Type=forking 11ExecStart=@workdir@/httpd/bin/apachectl start 12ExecStop=@workdir@/httpd/bin/apachectl stop 13PIDFile=@workdir@/httpd/logs/httpd.pid 14Restart=always 15RestartSec=10 16 17[Install] 18WantedBy=multi-user.target 19WantedBy=cfengine3.service 20