audiobookshelf/audiobookshelf.service

30 lines
647 B
Desktop File

[Unit]
Description=Self-hosted audiobook server for managing and playing audiobooks
Requires=network.target
[Service]
Type=simple
EnvironmentFile=/etc/conf.d/audiobookshelf
EnvironmentFile=-/etc/conf.d/audiobookshelf.custom
WorkingDirectory=/var/lib/audiobookshelf
ExecStart=/usr/bin/audiobookshelf
ExecReload=/bin/kill -HUP $MAINPID
Restart=always
User=audiobookshelf
Group=audiobookshelf
RuntimeDirectory=audiobookshelf
StateDirectory=audiobookshelf
NoNewPrivileges=yes
CapabilityBoundingSet=
RestrictNamespaces=true
SystemCallFilter=@system-service
PrivateTmp=true
ProtectSystem=strict
ProtectHome=yes
[Install]
WantedBy=multi-user.target