From 4b51afa126a14ca55761c0021dadc6fa83d0f0ce Mon Sep 17 00:00:00 2001 From: Sir-Photch Date: Tue, 19 Dec 2023 10:17:37 +0100 Subject: [PATCH] systemd unit workdir fix --- Cargo.lock | 2 +- Cargo.toml | 2 +- systemd/notesock.service | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 62814af..c3435c3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -122,7 +122,7 @@ checksum = "f665ee40bc4a3c5590afb1e9677db74a508659dfd71e126420da8274909a0167" [[package]] name = "notesock" -version = "0.1.1" +version = "0.1.2" dependencies = [ "clap", "emojis", diff --git a/Cargo.toml b/Cargo.toml index 2d3c98f..f2d7bac 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "notesock" -version = "0.1.1" +version = "0.1.2" edition = "2021" [profile.release] diff --git a/systemd/notesock.service b/systemd/notesock.service index 7c2ad76..2bbb2f8 100644 --- a/systemd/notesock.service +++ b/systemd/notesock.service @@ -7,7 +7,7 @@ User=notesock Group=notesock EnvironmentFile=/etc/notesock/notesock.env -WorkingDirectory=notesock +WorkingDirectory=/var/lib/notesock RuntimeDirectory=notesock ExecStart=/usr/bin/notesock -s /run/notesock -d /var/lib/notesock -w $N_WORKERS --host $HOST -x $EXPIRY_SECONDS -l $MAX_PASTE_SIZE_KB -t $TIMEOUT_MS Restart=on-failure