scriptbox/build_gitea/Linux/systemd/gitea.service

19 lines
442 B
SYSTEMD
Raw Permalink Normal View History

2022-12-02 14:08:30 +00:00
[Unit]
Description=Gitea (Git with a cup of tea)
After=network.target
[Service]
RestartSec=30s
Type=simple
User=gitea
Group=gitea
WorkingDirectory=/var/lib/gitea/
ExecStart=/usr/bin/gitea web -c /etc/gitea/app.ini
Restart=on-failure
Environment="GITEA_WORK_DIR=/var/lib/gitea/"
EnvironmentFile=-/etc/default/gitea
[Install]
WantedBy=multi-user.target
# Stealed from https://gitlab.com/packaging/gitea/-/blob/master/.packaging/gitea.service