templates/default/systemd/httpd.service.erb
[Unit]
Description=The Apache HTTP Server
After=network.target remote-fs.target nss-lookup.target
[Service]
<% if node['platform_family'] == 'debian' %>
Type=simple
<% else %>
Type=notify
<% end %>
Environment=LANG=C
ExecStart=/usr/sbin/<%= @binary_name %> -f /etc/<%= @apache_name %>/<%= @config_relative_path %> -DFOREGROUND
ExecReload=/usr/sbin/<%= @binary_name %> -f /etc/<%= @apache_name %>/<%= @config_relative_path %> -k graceful
ExecStop=/bin/kill -WINCH ${MAINPID}
KillSignal=SIGCONT
PrivateTmp=true
[Install]
WantedBy=multi-user.target