git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/cage: log to journal

Previously, cage would log to the TTY it was running on top of, so log messages were basically lost.

commitde27156be068d0f0b54c546e76f19ae714fa13f0 authorAlyssa Ross <hi@alyssa.is> dateThu 16 Dec 2021, 17:50 (5 years ago) parentcf6f9fb
1 file changed+2
nixos/modules/services/wayland/cage.nix+2
nixos/modules/services/wayland/cage.nix+2
@@ -74,6 +74,8 @@ in {
7474 TTYVTDisallocate = "yes";
7575 # Fail to start if not controlling the virtual terminal.
7676 StandardInput = "tty-fail";
77+ StandardOutput = "journal";
78+ StandardError = "journal";
7779 # Set up a full (custom) user session for the user, required by Cage.
7880 PAMName = "cage";
7981 };