3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/upstart-jobs/mingetty.nix
Eelco Dolstra 56da3e7887 * Allow any login program to be specified.
svn path=/nixos/trunk/; revision=7575
2007-01-08 21:34:30 +00:00

11 lines
237 B
Nix

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