From b8f9c00d30e2ea3323fa2a2fc0bd0e855d048e7f Mon Sep 17 00:00:00 2001 From: asonix Date: Sun, 9 Jul 2023 16:54:16 -0500 Subject: [PATCH] Add example unit file for running pict-rs --- systemd/pict-rs.service | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 systemd/pict-rs.service diff --git a/systemd/pict-rs.service b/systemd/pict-rs.service new file mode 100644 index 0000000..c27d008 --- /dev/null +++ b/systemd/pict-rs.service @@ -0,0 +1,14 @@ +[Unit] +Description=A simple image host +Documentation=https://git.asonix.dog/asonix/pict-rs +After=network-online.target firewalld.service + +[Service] +Type=simple +Environment="PICTRS__SERVER__ADDRESS=127.0.0.1:8080" +Environment="PICTRS__TRACING__LOGGING__TARGETS=warn" +Environment="PICTRS__MEDIA__FORMAT=avif" +Environment="PICTRS__REPO__PATH=/opt/pict-rs/sled" +Environment="PICTRS__STORE__PATH=/opt/pict-rs/files" +ExecStart=/usr/local/bin/pict-rs run +Restart=on-failure