|
|
@ -19,6 +19,7 @@ WorkingDirectory=/var/lib/gitea/ |
|
|
|
# If using Unix socket: tells systemd to create the /run/gitea folder, which will contain the gitea.sock file |
|
|
|
# (manually creating /run/gitea doesn't work, because it would not persist across reboots) |
|
|
|
#RuntimeDirectory=gitea |
|
|
|
ExecStartPre=/usr/local/bin/gitea --config /etc/gitea/app.ini admin regenerate keys |
|
|
|
ExecStart=/usr/local/bin/gitea web --config /etc/gitea/app.ini |
|
|
|
Restart=always |
|
|
|
Environment=USER=gitea HOME=/var/lib/gitea GITEA_WORK_DIR=/var/lib/gitea |
|
|
|