From 1461a83fa7af7c46396a85500c3d52fcc881dc14 Mon Sep 17 00:00:00 2001 From: Martin Brodbeck Date: Wed, 8 Jan 2025 15:11:04 +0100 Subject: [PATCH] fix environment --- systemd/kosyncrs.service | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/systemd/kosyncrs.service b/systemd/kosyncrs.service index 1809f9a..425889b 100644 --- a/systemd/kosyncrs.service +++ b/systemd/kosyncrs.service @@ -2,7 +2,7 @@ Description=KOReader Sync Server After=syslog.target After=network.target -After=redis.service +After=postgresql.service [Service] RestartSec=2s @@ -11,8 +11,7 @@ User=myuser Group=users WorkingDirectory=/home/myuser ExecStart=/usr/local/bin/kosyncrs -Environment="PG_URL=postgresql://kosync:password@localhost/kosync" -Environment="PORT=3003" +Environment=PG_URL=postgresql://kosync:password@localhost/kosync PORT=3003 Restart=always [Install]