mirror of
https://github.com/msfjarvis/server-config
synced 2025-08-13 20:37:02 +05:30

systemd now ignores 0 values for these. Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
26 lines
561 B
Desktop File
26 lines
561 B
Desktop File
[Unit]
|
|
Description=Gitea (Git with a cup of tea)
|
|
After=syslog.target
|
|
After=network.target
|
|
Requires=postgresql.service
|
|
|
|
[Service]
|
|
LimitMEMLOCK=infinity
|
|
LimitNOFILE=65535
|
|
RestartSec=2s
|
|
Type=simple
|
|
User=git
|
|
Group=git
|
|
WorkingDirectory=/var/lib/gitea/
|
|
ExecStart=/usr/local/bin/gitea web -c /etc/gitea/app.ini
|
|
Restart=always
|
|
Environment=USER=git HOME=/home/git GITEA_WORK_DIR=/var/lib/gitea
|
|
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
|
|
AmbientCapabilities=CAP_NET_BIND_SERVICE
|
|
CPUWeight=20
|
|
CPUQuota=25%
|
|
IOWeight=20
|
|
MemorySwapMax=1
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|