diff --git a/conf/systemd.service b/conf/systemd.service index 36af161..be56141 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -15,11 +15,11 @@ TemporaryFileSystem=/:ro BindReadOnlyPaths=-/lib/ -/lib64/ -/usr/lib/ -/usr/lib64/ -/etc/ld.so.cache -/etc/ld.so.conf -/etc/ld.so.conf.d/ -/etc/bindresvport.blacklist -/usr/share/zoneinfo/ -/usr/share/locale/ -/etc/localtime -/usr/share/common-licenses/ -/etc/ssl/certs/ -/etc/alternatives/ BindReadOnlyPaths=-/dev/log -/run/systemd/journal/socket -/run/systemd/journal/stdout -/run/systemd/notify -BindPaths=/var/www/photoprism /var/www/photoprism/live/bin /home/yunohost.app/photoprism -/usr -/etc -/var -/home -/dev -/etc -/media -/mnt -/opt -/proc -/run -/srv -/sys -/tmp +BindPaths=__INSTALL_DIR__ __INSTALL_DIR__/bin __DATA_DIR__ -/usr -/etc -/var -/home -/dev -/etc -/media -/mnt -/opt -/proc -/run -/srv -/sys -/tmp EnvironmentFile=__INSTALL_DIR__/.env -WorkingDirectory=__INSTALL_DIR__/live/bin -ExecStart=__INSTALL_DIR__/live/bin/photoprism --trace start +WorkingDirectory=__INSTALL_DIR__/bin +ExecStart=__INSTALL_DIR__/bin/photoprism --trace start StandardOutput=append:/var/log/__APP__/__APP__.log StandardError=inherit TimeoutSec=900