Open hendrikreuhl opened 1 year ago
changing manually systemd service files supplied from packages is wrong, for this there is systemd overrides as a workaround, you can mask the service and manually create your own
Arch linux wiki has a section about how to work around systemd units shipped by a package because it will always override change you make on package upgrade. Arch Wiki Systemd #Editing Provided Units
2 options are:
1) Create replace unit, which copies the existing systemd unit and you can tweak from there
# systemctl edit --full audiobookshelf.service
or
2) Create a drop in file
# systemctl edit audiobookshelf.service --drop-in=<name>
<# leave out --drop-in=
Describe the issue
Hi everyone,
I'm running Audiobookshelf in a lxc container on my proxmox host using debian 12. I need to customize the systemd service, as I have to execute it as a different user than audiobookshelf. Whenever I do an apt upgrade of the package, the systemd service gets overwritten by the package default systemd service, causing the process to brick at a reboot due to permission problems. Is there the possibility to not update the systemd service file with every upgrade?
Regards
Steps to reproduce the issue
Audiobookshelf version
2.3.0 amd64 [installed,upgradable to: 2.3.1]
How are you running audiobookshelf?
Debian/PPA