Sonarr Phantom deb package doesn't support changing sonarr user/group

Created on 23 Nov 2018  路  3Comments  路  Source: Sonarr/Sonarr

The sonarr service on a debian system has the user and group hardcored as sonarr

Changing the user and group for the service in /lib/systemd/system/sonarr.service isn't persistent as an update will overwrite the file.

One relatively simple solution here would be to use a /etc/default/sonarr file with user and group therein, and just pull those in with a EnvironmentFile=/etc/default/sonarr section in the sonarr.service file.

This way we can make local modifications to the user and group without causing problems.

(Alternately we could use a dpkg-divert option locally, but that seems kludgy in case a change is made in future with default mono options, etc.)

Most helpful comment

To add:

You can edit systemd units with systemctl edit sonarr.service, which is the standard way of systemd to provide overrides. Which survives updates.

However, I suggest you wait a bit, coz we're working on improving the deployment process on debian. Including using debconf to allow the user to provide the user and group as config.

All 3 comments

Please use the appropriate place for phantom feedback (forums/subreddit). This is something being worked on though.

To add:

You can edit systemd units with systemctl edit sonarr.service, which is the standard way of systemd to provide overrides. Which survives updates.

However, I suggest you wait a bit, coz we're working on improving the deployment process on debian. Including using debconf to allow the user to provide the user and group as config.

Also thanks @Taloth for educating me on the proper way to edit systemd units.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Taloth picture Taloth  路  4Comments

antigravity83 picture antigravity83  路  3Comments

sparkie3 picture sparkie3  路  3Comments

markus101 picture markus101  路  4Comments

sam3d picture sam3d  路  3Comments