eole-gitea/systemd/forge.service

25 lines
577 B
SYSTEMD

[Unit]
Description=Forge Gitea (Git with a cup of tea)
After=syslog.target
After=network.target
After=mysqld.service
After=postgresql.service
After=memcached.service
After=redis.service
[Service]
#LimitMEMLOCK=infinity
#LimitNOFILE=65535
RestartSec=4s
Type=simple
User=git
Group=gitservice
WorkingDirectory=/srv/forge/gitea/bin/
ExecStart=/srv/forge/gitea/bin/gitea web -c /etc/gitea/conf/app.ini
Restart=always
Environment=USER=git HOME=/srv/forge/git
#CapabilityBoundingSet=CAP_NET_BIND_SERVICE
#AmbientCapabilities=CAP_NET_BIND_SERVICE
[Install]
WantedBy=multi-user.target