0

I installed gitea with snap on Ubuntu some weeks ago.

Yesterday the service stopped to work and after digging into to logs I found that systemd service file had beed changed.

The file is:

/etc/systemd/system/snap.gitea.web.service

I had previously modified it adding

[Service]
User=gitea
Group=gitea

but yesterday these modifications disappeared.

What can be the cause? Who can help me?

dash1e
  • 101
  • 1
    In all likelihood, snapd replaced it when it updated the snap? You should use override files instead of modifying the unit file directly – muru Feb 08 '24 at 00:31
  • how can I do that? override file (1) or modifying the unit (2) ? – dash1e Feb 09 '24 at 02:36
  • 1
    You already tried (2) as you mentioned in the question. For (1) use systemctl edit snap.gitea.web.service and add your modifications to the override file. See https://askubuntu.com/a/659268/158442 – muru Feb 09 '24 at 02:40
  • Tnx! Just to know, where the unit files are stored? – dash1e Feb 09 '24 at 06:42

0 Answers0