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
This commit is contained in:
Vincent Ambo 2018-06-18 20:12:43 +02:00
parent 9f29992d03
commit 7557d8ff5b

View file

@ -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();
}