blob: ca58a3b49a0d733c4aecdb61fd5e568d794870d4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
[Unit]
Description=gitbucket.service
After=network.target
[Service]
User=gitbucket
Group=gitbucket
EnvironmentFile=/etc/conf.d/gitbucket
Environment=GITBUCKET_HOME=/var/lib/gitbucket
Environment=GITBUCKET_TEMPDIR=/var/lib/gitbucket/.tmp
Environment=GITBUCKET_PLUGINDIR=/var/lib/gitbucket/plugins
ExecStartPre=/bin/mkdir -p /var/lib/gitbucket/.tmp /var/lib/gitbucket/plugins
ExecStart=/usr/bin/java -Dlogback.configurationFile=/etc/gitbucket/logback.xml -jar /usr/lib/gitbucket/gitbucket.war
StandardOutput=file:/var/log/gitbucket/console.log
StandardError=inherit
Restart=on-abort
[Install]
WantedBy=multi-user.target
|