diff --git a/site-modules/profile/templates/phabricator/phabricator-phd.service.erb b/site-modules/profile/templates/phabricator/phabricator-phd.service.erb index 26ca0c52..5b8f222c 100644 --- a/site-modules/profile/templates/phabricator/phabricator-phd.service.erb +++ b/site-modules/profile/templates/phabricator/phabricator-phd.service.erb @@ -1,22 +1,21 @@ # Phabricator Daemon unit file # Managed by puppet class profile::phabricator # Changes will be overwritten [Unit] Description=Phabricator Daemons Requires=network.target mysql.service apache2.service After=network.target mysql.service apache2.service [Service] User=<%= @phabricator_user %> Group=<%= @phabricator_user %> -Type=oneshot +Type=forking Environment="PATH=/sbin:/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin" ExecStart=<%= @phabricator_basepath -%>/phabricator/bin/phd start ExecStop=<%= @phabricator_basepath -%>/phabricator/bin/phd stop -RemainAfterExit=yes Restart=always RestartSec=5s [Install] WantedBy=multi-user.target