- Brain.
- Gitea installed at
/opt/gitea
, otherwise modify thegitea.service
file contents before the next steps. - Modify the
User
andGroup
insidegitea.service
if necessary.
- Save gitea.service as
/etc/systemd/system/gitea.service
- Run
sudo systemctl enable gitea
- Run
sudo systemctl start gitea
If you did everything right (download, configure, this and that) then the unit should be working fine. It will also automatically run whenever the system boots up, which means you don't have to deal with the headache of starting it up manually yourself.
In case the service is not running when you check via sudo systemctl status gitea
then make sure your Gitea configuration hasn't been mangled by something.