2019-10-11 16:12:40 +02:00
|
|
|
[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-9.5.service
|
|
|
|
After=postgresql-9.6.service
|
|
|
|
After=postgresql-10.service
|
|
|
|
After=postgresql-11.service
|
|
|
|
After=postgresql-12.service
|
2021-09-06 16:06:58 +02:00
|
|
|
After=postgresql-13.service
|
|
|
|
After=postgresql-14.service
|
2019-10-11 16:12:40 +02:00
|
|
|
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
|