• Can somebody help me with override files in systemd?


    Using Sonarr, I ran into an issue.

    Right now, I have Sonarr configured to run under my user and the ‘users’ group. Here is the sonarr.service file from systemd:

    Unit]
    Description=Sonarr Service
    After=network.target

    [Service]
    User=roadhazard
    Group=users
    ExecStart=/usr/bin/sonarr -nobrowser -data=/var/lib/sonarr
    Type=simple
    TimeoutStopSec=20
    KillMode=process
    Restart=always

    [Install]
    WantedBy=multi-user.target

    … I recently applied an update to Sonarr and the packaged AUR file overwrote my username and group and reverted it back to:

    user=sonarr
    group=sonarr

    I asked for help in the Sonarr forum and one of their suggestions was to use a .override file to prevent this from happening. I did some reading around and couldn’t find a solid answer so I decided to ask here. Any guidance would be appreciated.

    Thanks

  • Figured it out.

    I created a folder at /usr/lib/systemd/system/sonarr.service.d/override.conf

    In that text file, I only have:

    [Service]
    User=roadhazard
    Group=users

    restarted and Sonarr is running under my account with no problems.

systemd30 override2 somebody2 Posts 2Views 110
Bloom Email Optin Plugin

Looks like your connection to Antergos Community Forum was lost, please wait while we try to reconnect.