updates / experimental TC setup
This commit is contained in:
@@ -31,12 +31,24 @@ in {
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
RemainAfterExit = true;
|
||||
ExecStartPre = ["${wait-for-printer}/bin/wait-for-printer"];
|
||||
# Als ExecStart (nicht ExecStartPre!): ohne ExecStart ist die Unit
|
||||
# ungueltig und systemd laedt sie gar nicht ("bad unit file setting").
|
||||
ExecStart = "${wait-for-printer}/bin/wait-for-printer";
|
||||
Restart = "on-failure";
|
||||
RestartSec = "30s";
|
||||
};
|
||||
};
|
||||
|
||||
# CUPS erst starten, wenn der Drucker erreichbar ist (Gate via ensure-printers).
|
||||
# cups-post-start fuehrt lpadmin aus und schlaegt fehl, solange NetBird beim
|
||||
# Boot noch nicht steht -> Restart-Schleife -> start-limit-hit von
|
||||
# cups.service und cups.socket. Ist der Drucker nicht erreichbar (unterwegs),
|
||||
# startet CUPS trotzdem (Wants, kein Requires) wie bisher.
|
||||
systemd.services.cups = {
|
||||
wants = ["ensure-printers.service"];
|
||||
after = ["ensure-printers.service"];
|
||||
};
|
||||
|
||||
services.printing = {
|
||||
enable = true;
|
||||
drivers = with pkgs; [
|
||||
|
||||
Reference in New Issue
Block a user