about summary refs log tree commit diff
path: root/src/main.rs
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2018-06-18T18·12+0200
committerVincent Ambo <mail@tazj.in>2018-06-18T18·12+0200
commit7557d8ff5bdb8979a71bf17922e49342f973158c (patch)
tree006ca8ba40d866d57e4e9977102d0ea2c4fc5d42 /src/main.rs
parent9f29992d03d6bb941a8bfc16a29c4a72a72fc34a (diff)
refactor(main): Move cursor file to /var/lib/journaldriver
This directory is the default for state directories managed by
systemd, which will be the main use-case of journaldriver when running
it on NixOS.

Relates to nixos/nixpkgs#42134
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 33ca57dddbbe..0f1f11ddda79 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -124,7 +124,7 @@ lazy_static! {
     /// Path to the file in which journaldriver should persist its
     /// cursor state.
     static ref POSITION_FILE: PathBuf = env::var("CURSOR_POSITION_FILE")
-        .unwrap_or("/var/journaldriver/cursor.pos".into())
+        .unwrap_or("/var/lib/journaldriver/cursor.pos".into())
         .into();
 }