aboutsummaryrefslogtreecommitdiff
path: root/agetty-guide.md
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2017-03-09 15:23:02 -0600
committerWilliam Hubbs <w.d.hubbs@gmail.com>2017-03-09 15:23:02 -0600
commitd7bbb0f5830e1ec4df1ec52714d70ac6b0a81878 (patch)
treefd573e4347b4574e118649c4632097d6d3018a71 /agetty-guide.md
parent21ca2b746cce67e2b3578fb7015c9d4c243e3a0c (diff)
add agetty service
The agetty service is an alternate way to manage gettys with agetty under Linux which is separate from an external init system.
Diffstat (limited to 'agetty-guide.md')
-rw-r--r--agetty-guide.md19
1 files changed, 19 insertions, 0 deletions
diff --git a/agetty-guide.md b/agetty-guide.md
new file mode 100644
index 00000000..ce46a830
--- /dev/null
+++ b/agetty-guide.md
@@ -0,0 +1,19 @@
+# Setting up the agetty service in OpenRC
+
+The agetty service is an OpenRC specific way to monitor and respawn a
+getty, using agetty, on Linux. To use this method, make sure you aren't
+spawning a getty manager for this port some other way (such as through
+sysvinit/inittab), then run the following commands as root.
+
+Note that [port] refers to the port you are spawning the getty on, and
+not the full path to it. For example, tty0 or ttyS0instead of /dev/tty0
+or /dev/ttyS0.
+tty0 or ttyS0, not the full path to it (for example, tty0 or ttyS0 and
+
+```
+# cd /etc/init.d
+# ln -s agetty agetty.[port]
+# cd /etc/conf.d
+# cp agetty agetty.[port]
+#rc-update add agetty.[port] [runlevel]
+```