I installed Sonarr from the Ubuntu application center, and from what I can tell it is part of a snap package. The service cannot access a hard drive mount I am using. I set up the drive in order to be owned by a user and group I specified. Sonarr appears to be running as a system application (based on what I read) and cannot look into directories on this mount, even though I made sure I ran chmod 777 on the relevant directories. Other services I run have no issues accessing the mount or writing to it. Only Sonarr. I did alot of searching and concluded that I need to change the user that the service runs under.
This is where googling has failed me. All the solutions are years old and I could not adapt them:
- I looked for the service configuration file in /lib/systemd and could not find it.
- Sonarr is now installed as a snap package and does not appear to use systemd for services. I dont know what it uses. It also does not need a user to install mono first.
- I found a snap file that appears to launch the sonarr service, but it has "DO NOT EDIT" on the first line. So I backed away.
So in order to proceed I need to know the following:
- Are services installed by snap managed from somewhere else?
- How can I find the configuration file for the service and change it to run as a specific user (e.g. me)
- If I set it to run as a specific user, does that mean the user has to be logged in for the service to work?