nixpkgs/upstart-jobs/mingetty.nix
Eelco Dolstra d98f482739 * 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/trunk/; revision=13931
2009-02-01 19:51:53 +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}
";
}