bstopp/puppet-aem

View on GitHub
templates/etc/init.d/systemd.erb

Summary

Maintainability
Test Coverage
# ************************************
# Managed by Puppet AEM Module
# ************************************

[Unit]
Description=Adobe Experience Manager (<%= @name %>)
After=network.target remote-fs.target nss-lookup.target

[Service]
Type=forking
PIDFile=<%= @home %>/crx-quickstart/conf/cq.pid
User=<%= @user %>
Group=<%= @group %>
ExecStart=<%= @home %>/crx-quickstart/bin/start
ExecStop=<%= @home %>/crx-quickstart/bin/stop
# We want systemd to give aem some time to finish gracefully, but still want
# it to kill aem after TimeoutStopSec if something went wrong during the
# graceful stop. Normally, Systemd sends SIGTERM signal right after the
# ExecStop, which would kill aem. We are sending useless SIGCONT here to give
# aem time to finish.

<% @service_options.each do |key, value| -%>
<%= key %>=<%= value %>
<% end -%>


[Install]
WantedBy=multi-user.target