[gitea] Change service user to gitea, add restart rules
This commit is contained in:
parent
0ba93404ab
commit
8cb9427417
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue