Update gitea.service.tpl

This commit is contained in:
midoks
2022-10-05 20:05:27 +08:00
parent 061eaabe79
commit 68ca194c2d
+10 -4
View File
@@ -1,11 +1,17 @@
[Unit]
Description=gitea
Description=Gitea (Git with a cup of tea)
After=syslog.target
After=network.target
[Service]
Type=forking
ExecStart={$SERVER_PATH}/gitea/init.d/gitea start
ExecStop={$SERVER_PATH}/gitea/init.d/gitea stop
RestartSec=2s
Type=simple
User=git
Group=git
WorkingDirectory=/var/lib/gitea/
ExecStart={$SERVER_PATH}/gitea/gitea web
Restart=always
Environment=USER=git HOME=/home/git GITEA_WORK_DIR=/var/lib/gitea
RemainAfterExit=yes
AmbientCapabilities=CAP_NET_BIND_SERVICE