Upstart examples for logins
On distributions that use Upstart, you can specify terminal IDs and login programs through Upstart job files.
You can use names of your choice for the file names of your Upstart job files. The directory where you must place the file depends on your distribution.
- This Upstart job file enables user logins on the iucvtty instance
with terminal ID
lxterm1with /bin/login:start on runlevel [2345] stop on runlevel [01] respawn exec /usr/bin/iucvtty lxterm1 - This Upstart job file enables user logins on the iucvtty instance
with terminal ID
slnxtermin single user mode. Instead of /bin/login, the default login program, the /sbin/sulogin login program is used.start on runlevel S stop on runlevel exec /usr/bin/iucvtty slnxterm -- /sbin/sulogin
Note:
- The /sbin/sulogin login program requires a login by user root
- The runlevel specification for single user mode and for emergency mode depends on your distribution.