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

19 lines
475 B
SYSTEMD
Raw Normal View History

2021-09-26 09:42:30 +00:00
[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