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:
parent
9f29992d03
commit
7557d8ff5b
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ lazy_static! {
|
||||||
/// Path to the file in which journaldriver should persist its
|
/// Path to the file in which journaldriver should persist its
|
||||||
/// cursor state.
|
/// cursor state.
|
||||||
static ref POSITION_FILE: PathBuf = env::var("CURSOR_POSITION_FILE")
|
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();
|
.into();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue