[gitea] Change service user to gitea, add restart rules

This commit is contained in:
Vladan Popovic 2019-08-02 11:40:40 +02:00
parent 0ba93404ab
commit 8cb9427417

View file

@ -10,13 +10,13 @@ After=network.target
#Requires=redis.service #Requires=redis.service
[Service] [Service]
RestartSec=2s
Restart=always
User=gitea User=gitea
Group=www-data Group=www-data
WorkingDirectory=/var/lib/gitea WorkingDirectory=/var/lib/gitea
Environment=USER=git HOME=/var/lib/gitea GITEA_WORK_DIR=/var/lib/gitea Environment=USER=gitea HOME=/var/lib/gitea GITEA_WORK_DIR=/var/lib/gitea
ExecStart=/usr/bin/gitea web -c /etc/gitea/app.ini ExecStart=/usr/bin/gitea web -c /etc/gitea/app.ini
StateDirectory=gitea StateDirectory=gitea
ConfigurationDirectory=gitea ConfigurationDirectory=gitea