From 7557d8ff5bdb8979a71bf17922e49342f973158c Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Mon, 18 Jun 2018 20:12:43 +0200 Subject: 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 --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.rs') 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(); } -- cgit 1.4.1