Skip to content

Commit

Permalink
Merge pull request #537 from nix-community/systemd-logs
Browse files Browse the repository at this point in the history
shim: make systemd log to kmsg
  • Loading branch information
K900 authored Sep 2, 2024
2 parents 345dfa0 + 671e261 commit e3328f0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions utils/src/shim.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ fn real_main() -> anyhow::Result<()> {
Err(
Command::new("/nix/var/nix/profiles/system/systemd/lib/systemd/systemd")
.arg0(env::args_os().next().expect("arg0 missing"))
.arg("--log-target=kmsg") // log to dmesg
.args(env::args_os().skip(1))
.exec()
.into(),
Expand Down

0 comments on commit e3328f0

Please sign in to comment.