From 03d6d8f15825811bddf368732c22fc6a705a9d32 Mon Sep 17 00:00:00 2001 From: Martin Ashby Date: Fri, 30 Dec 2022 01:07:37 +0000 Subject: update refresh script and add systemd file for comments service --- comments/comments.service | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 comments/comments.service (limited to 'comments/comments.service') diff --git a/comments/comments.service b/comments/comments.service new file mode 100644 index 0000000..b511915 --- /dev/null +++ b/comments/comments.service @@ -0,0 +1,12 @@ +[Unit] +Description=Comments service +After=postgres.service + +[Service] +User=comments +ExecStart=/usr/local/bin/comments +Restart=on-failure +Environment="DATABASE_URL=postgres:///comments" + +[Install] +WantedBy=multi-user.target -- cgit v1.2.3-ZIG