This repository has been archived on 2023-02-05. You can view files and clone it, but cannot push or open issues or pull requests.
pyinfra-photoprism/files/photoprism.service
2021-09-26 18:42:30 +09:00

18 lines
475 B
Desktop File

[Unit]
Description=photoprism
After=network.target
[Service]
Type=simple
User=photoprism
Group=photoprism
StateDirectory=photoprism
EnvironmentFile=/etc/photoprism.env
WorkingDirectory=/photoprism
RootDirectory=/opt/photoprism
BindPaths=/home/photoprism/storage:/photoprism/storage /home/photoprism/originals:/photoprism/originals /home/photoprism/import:/photoprism/import
ExecStart=/photoprism/bin/photoprism start
Restart=on-failure
[Install]
WantedBy=multi-user.target