From af07352703d728e86387b30e126689f64708073f Mon Sep 17 00:00:00 2001 From: anvme <56738034+anvme@users.noreply.github.com> Date: Tue, 7 Jun 2022 23:42:08 +0300 Subject: [PATCH] Update semaphore.service Normal service file --- deployment/systemd/semaphore.service | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/deployment/systemd/semaphore.service b/deployment/systemd/semaphore.service index 838135ca6..4e58ea701 100644 --- a/deployment/systemd/semaphore.service +++ b/deployment/systemd/semaphore.service @@ -1,14 +1,18 @@ [Unit] Description=Ansible Semaphore +Documentation=https://github.com/ansible-semaphore/semaphore +Documentation=man:semaphore --help Requires=network.target +After=network.target syslog.target [Service] -EnvironmentFile=/etc/semaphore/env -ExecStart=/usr/bin/semaphore server --config ${SEMAPHORE_CONFIG} User=semaphore Group=semaphore +ExecStart=/usr/bin/semaphore server --config /home/semaphore/config.json +ExecStop=/bin/kill -s QUIT $MAINPID +ExecReload=/bin/kill -s HUP $MAINPID Restart=always -RestartSec=3s +RestartSec=3 [Install] -WantedBy=multi-user.target +WantedBy=multi-user.target \ No newline at end of file