1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/navidrome_ynh.git synced 2024-09-03 19:46:30 +02:00

Update systemd.service

This commit is contained in:
ericgaspar 2023-03-09 17:12:16 +01:00
parent e12db564c2
commit 4ba82116ce

View file

@ -1,18 +1,18 @@
[Unit]
Description=Navidrome: Music Server and Streamer compatible with Subsonic/Airsonic
After=remote-fs.target network.target
AssertPathExists=__CONFIG_PATH__
AssertPathExists=/var/lib/__APP__
[Service]
Type=simple
User=__APP__
Group=__APP__
WorkingDirectory=__CONFIG_PATH__/
WorkingDirectory=/var/lib/__APP__/
ExecStart=__INSTALL_DIR__/__APP__ --configfile "/var/lib/__APP__/navidrome.toml"
TimeoutStopSec=20
KillMode=process
Restart=on-failure
ReadWritePaths=__CONFIG_PATH__
ReadWritePaths=/var/lib/__APP__
# Sandboxing options to harden security
# Depending on specificities of your service/app, you may need to tweak these