From 2bac295504960ac4a18d7c19513160363f587f01 Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Wed, 30 Oct 2024 00:32:17 -0400 Subject: Load DB paths from a file, rather than hard-coding them in the systemd unit. --- debian/hi.service | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'debian/hi.service') diff --git a/debian/hi.service b/debian/hi.service index ec444c8..cc4a951 100644 --- a/debian/hi.service +++ b/debian/hi.service @@ -3,7 +3,8 @@ Description=Hi chat service After=network-online.target [Service] -ExecStart=/usr/bin/hi --database-url sqlite:///var/lib/hi/hi.db +EnvironmentFile=/etc/default/hi +ExecStart=/usr/bin/hi Restart=on-failure [Install] -- cgit v1.2.3