logind

Logind is a daemon that starts login sessions on multiple virtual console terminals, on demand. It is a good replacement for all those getty processes traditionaly started from init, but that nobody uses and thus are only taking up memory. The logind binary size, when compiled statically with dietlibc, is only 2k and also uses much less memory than one single getty:

$ size getty logind text data bss dec hex filename 10388 788 10368 21544 5428 getty 1602 8 124 1734 6c6 logind $ ls -l getty logind -r-x------ 1 root root 14796 2007-02-21 17:48 getty -r-x------ 1 root root 2148 2007-05-13 12:24 logind $ ps aux USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 2475 0.0 0.0 1572 236 tty1 Ss+ 09:12 0:00 getty 38400 tty1 root 2476 0.0 0.0 1572 236 tty2 Ss+ 09:12 0:00 getty 38400 tty2 root 2477 0.0 0.0 1576 236 tty3 Ss+ 09:12 0:00 getty 38400 tty3 root 2478 0.0 0.0 1572 236 tty4 Ss+ 09:12 0:00 getty 38400 tty4 root 2479 0.0 0.0 1572 236 tty5 Ss+ 09:12 0:00 getty 38400 tty5 root 2480 0.0 0.0 1572 236 tty6 Ss+ 09:12 0:00 getty 38400 tty6 root 5646 0.0 0.0 100 20 ? Ss 12:38 0:00 logind /dev/tty[123456]

logind was developed on GNU/Linux, but it should also run on most other Unix systems.

Sources

    • logind-20070528.tar.bz2

Debian packages

    • Binary: logind_0.0.20070528-1_i386.deb logind_0.0.20070528-1_amd64.deb

    • Source: logind_0.0.20070528-1.dsc logind_0.0.20070528.orig.tar.gz logind_0.0.20070528-1.diff.gz

License

logind is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version.

Jan 31 2009

Andre B. Oliveira