From bc1828e2d6641ff319c90f2e8e2a407a5e5fa74c Mon Sep 17 00:00:00 2001 From: Markus Hauschild Date: Wed, 28 Feb 2018 14:31:46 +0100 Subject: [PATCH] Fix confluence service file --- roles/confluence/files/confluence.service | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/roles/confluence/files/confluence.service b/roles/confluence/files/confluence.service index 308e9a2..6e87004 100644 --- a/roles/confluence/files/confluence.service +++ b/roles/confluence/files/confluence.service @@ -1,10 +1,13 @@ -[Unit] -Description=Confluence -After=network.target +[Unit] +Description=Confluence Team Collaboration Software +After=network.target postgresql.service -[Service] -ExecStart=/bin/su confluence /opt/atlassian-confluence/bin/start-confluence.sh -ExecStop=/bin/su confluence /opt/atlassian-confluence/bin/stop-confluence.sh +[Service] +Type=forking +User=confluence +PIDFile=/opt/atlassian/confluence/work/catalina.pid +ExecStart=/opt/atlassian/confluence/bin/start-confluence.sh +ExecStop=/opt/atlassian/confluence/bin/stop-confluence.sh -[Install] -WantedBy=multi-user.target +[Install] +WantedBy=multi-user.target