summarylogtreecommitdiffstats
path: root/bitbucket.service
diff options
context:
space:
mode:
authorJoshH1002019-11-17 13:16:31 -0700
committerJoshH1002019-11-17 13:16:31 -0700
commitacf9dbd100fabb37a0437c0e0fd2f78f1abb3b22 (patch)
treedbcda8c281050ae742d7449a4537aaec08f57cb4 /bitbucket.service
parent9729f7fcd10627152019092617602f5239ca9565 (diff)
downloadaur-atlassian-bitbucket.tar.gz
updated to 6.8.0, removed steps in .install now down by pacman hooks, still need to rework 'backup' files (symlink stuff to /etc)
Diffstat (limited to 'bitbucket.service')
-rw-r--r--bitbucket.service14
1 files changed, 12 insertions, 2 deletions
diff --git a/bitbucket.service b/bitbucket.service
index cc91bd5fbab6..21e489e11c5c 100644
--- a/bitbucket.service
+++ b/bitbucket.service
@@ -3,12 +3,22 @@ Description=Bitbucket Server by Atlassian
After=network.target
[Service]
-Type=forking
+User=bitbucket
+SyslogIdentifier=bitbucket
+Environment="BITBUCKET_HOME=/var/lib/bitbucket"
+Environment="CATALINA_HOME=/opt/atlassian-bitbucket"
+Environment="CATALINA_BASE=/opt/atlassian-bitbucket"
+Environment="CATALINA_TMPDIR=/opt/atlassian-bitbucket/temp"
+Environment="JAVA_HOME=/usr/lib/jvm/default"
+Environment="CLASSPATH=/opt/atlassian-bitbucket/app"
+EnvironmentFile=-/etc/conf.d/bitbucket
ExecStart=/opt/atlassian-bitbucket/bin/start-bitbucket.sh
ExecStop=/opt/atlassian-bitbucket/bin/stop-bitbucket.sh
-PIDFile=/opt/atlassian-bitbucket/work/catalina.pid
+Type=forking
+PIDFile=/var/lib/bitbucket/log/bitbucket.pid
KillSignal=SIGINT
LimitNOFILE=8196
+SuccessExitStatus=143
[Install]
WantedBy=multi-user.target