[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
|
||||
|
||||
[Service]
|
||||
RestartSec=2s
|
||||
Restart=always
|
||||
User=gitea
|
||||
Group=www-data
|
||||
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
|
||||
|
||||
StateDirectory=gitea
|
||||
ConfigurationDirectory=gitea
|
||||
|
||||
|
|
Loading…
Reference in a new issue