<% | Stdlib::Unixpath $command, Optional[String] $daemon, String $user, String $group, String $runtime_directory, | -%> [Unit] Description=Phabricator Daemons Documentation=https://secure.phabricator.com/book/phabricator/article/managing_daemons/ Requires=network.target After=network.target [Service] Type=forking <% if $daemon { -%> ExecStart=<%= $command %> launch <%= $daemon %> <% } else { -%> ExecStart=<%= $command %> start <% } -%> <%# # TODO: We should probably use `bin/phd reload`, although certain resources # (such as `Class['php::cli']`) should trigger a `restart` rather than a `reload`. -%> ExecReload=<%= $command %> restart --force ExecStop=<%= $command %> stop --force User=<%= $user %> Group=<%= $group %> RuntimeDirectory=<%= $runtime_directory %> [Install] WantedBy=multi-user.target