diff --git a/site-modules/profile/templates/phabricator/phabricator-aphlict.service.erb b/site-modules/profile/templates/phabricator/phabricator-aphlict.service.erb index 612d95d3..8f52e8d7 100644 --- a/site-modules/profile/templates/phabricator/phabricator-aphlict.service.erb +++ b/site-modules/profile/templates/phabricator/phabricator-aphlict.service.erb @@ -1,21 +1,23 @@ # Phabricator Notification Daemon unit file # Managed by puppet class profile::phabricator # Changes will be overwritten [Unit] Description=Phabricator Notification Daemon Requires=network.target mysql.service apache2.service After=network.target mysql.service apache2.service Before=phabricator-phd.service [Service] User=<%= @phabricator_user %> Group=<%= @phabricator_user %> RuntimeDirectory=phabricator-aphlict Type=forking Environment="PATH=/sbin:/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin" ExecStart=<%= @phabricator_basepath -%>/phabricator/bin/aphlict start ExecStop=<%= @phabricator_basepath -%>/phabricator/bin/aphlict stop +Restart=always +RestartSec=5s [Install] WantedBy=multi-user.target diff --git a/site-modules/profile/templates/phabricator/phabricator-phd.service.erb b/site-modules/profile/templates/phabricator/phabricator-phd.service.erb index 85754985..26ca0c52 100644 --- a/site-modules/profile/templates/phabricator/phabricator-phd.service.erb +++ b/site-modules/profile/templates/phabricator/phabricator-phd.service.erb @@ -1,20 +1,22 @@ # 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 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 diff --git a/site-modules/profile/templates/phabricator/phabricator-sshd.service.erb b/site-modules/profile/templates/phabricator/phabricator-sshd.service.erb index f144b2e9..a306bfdd 100644 --- a/site-modules/profile/templates/phabricator/phabricator-sshd.service.erb +++ b/site-modules/profile/templates/phabricator/phabricator-sshd.service.erb @@ -1,14 +1,15 @@ [Unit] Description=Phabricator Secure Shell server After=network.target auditd.service ConditionPathExists=!/etc/ssh/sshd_not_to_be_run [Service] EnvironmentFile=-/etc/default/ssh ExecStart=/usr/sbin/sshd -D $SSHD_OPTS -f <%= @phabricator_ssh_config %> ExecReload=/bin/kill -HUP $MAINPID KillMode=process -Restart=on-failure +Restart=always +RestartSec=5s [Install] WantedBy=multi-user.target