summaryrefslogtreecommitdiff
path: root/www-apps/gitea/files/gitea.service-r1
blob: 73f924337fd6a56ce304e3abf4860bdccc7e19d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
[Unit]
Description=Gitea service
Documentation=https://docs.gitea.io/

AssertPathIsDirectory=/var/lib/gitea
AssertPathIsReadWrite=/var/lib/gitea

After=network.target
Requires=network.target
After=mysqld.service
After=postgresql.service
After=memcached.service
After=redis.service

[Service]
User=git
Group=git

Environment="GITEA_WORK_DIR=/var/lib/gitea GITEA_CUSTOM=/var/lib/gitea/custom"
WorkingDirectory=/var/lib/gitea
ExecStart=/usr/bin/gitea web --config /etc/gitea/app.ini

Restart=always
PrivateTmp=true
Nice=5

[Install]
WantedBy=multi-user.target