21 lines
415 B
SYSTEMD
21 lines
415 B
SYSTEMD
|
[Unit]
|
||
|
Description=Gitea (Git with a cup of tea)
|
||
|
After=syslog.target
|
||
|
After=network.target
|
||
|
After=mysql.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
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|