2018-06-08 18:10:27 +02:00
|
|
|
[Unit]
|
|
|
|
Description=Gitea service
|
2019-04-02 14:31:11 +02:00
|
|
|
Documentation=https://docs.gitea.io/
|
2018-06-08 18:10:27 +02:00
|
|
|
|
|
|
|
AssertPathIsDirectory=/var/lib/gitea
|
|
|
|
AssertPathIsReadWrite=/var/lib/gitea
|
|
|
|
|
|
|
|
After=network.target
|
|
|
|
Requires=network.target
|
|
|
|
After=mysqld.service
|
2019-04-02 14:31:11 +02:00
|
|
|
After=postgresql.service
|
|
|
|
After=memcached.service
|
|
|
|
After=redis.service
|
2018-06-08 18:10:27 +02:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
User=git
|
|
|
|
Group=git
|
|
|
|
|
2019-04-02 14:31:11 +02:00
|
|
|
Environment="GITEA_WORK_DIR=/var/lib/gitea GITEA_CUSTOM=/var/lib/gitea"
|
2018-06-08 18:10:27 +02:00
|
|
|
WorkingDirectory=/var/lib/gitea
|
|
|
|
ExecStart=/usr/bin/gitea web -c /var/lib/gitea/conf/app.ini
|
|
|
|
|
|
|
|
Restart=always
|
|
|
|
PrivateTmp=true
|
|
|
|
Nice=5
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|