summarylogtreecommitdiffstats
path: root/photoprism.service
diff options
context:
space:
mode:
Diffstat (limited to 'photoprism.service')
-rw-r--r--photoprism.service15
1 files changed, 15 insertions, 0 deletions
diff --git a/photoprism.service b/photoprism.service
new file mode 100644
index 000000000000..79dfb5edb766
--- /dev/null
+++ b/photoprism.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=Photoprism
+Documentation=https://docs.photoprism.org
+After=network-online.target
+
+[Service]
+User=photoprism
+# EnvironmentFile=/etc/systemd/system/photoprism.service.env
+# ExecStartPre=
+ExecStart=/usr/bin/photoprism start
+Restart=always
+RestartSec=15s
+
+[Install]
+WantedBy=multi-user.target