nixpkgs/upstart-jobs/mingetty.nix
Nicolas Pierron 09bcf1418c * Start mingetty after udev, otherwise /dev/tty* may not exist yet
(and you get Upstart messages about the ttyN job being restarted).

svn path=/nixos/branches/fix-style/; revision=14174
2009-02-22 16:07:56 +00:00

11 lines
234 B
Nix

{mingetty, ttyNumber, loginProgram}:
{
name = "tty" + toString ttyNumber;
job = "
start on udev
stop on shutdown
respawn ${mingetty}/sbin/mingetty --loginprog=${loginProgram} --noclear tty${toString ttyNumber}
";
}