aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--init/serial.conf13
1 files changed, 11 insertions, 2 deletions
diff --git a/init/serial.conf b/init/serial.conf
index e47df283..dcf7df43 100644
--- a/init/serial.conf
+++ b/init/serial.conf
@@ -9,8 +9,17 @@
# the proper port is in /etc/securetty, and starts the getty.
#
# If your serial console is not the primary console, or you want a getty
-# on serial even if it's not the console, create your own event by copying
-# /etc/init/tty.conf, and changing the getty line in that file.
+# on serial even if it's not the console, create your own event e.g.
+# /etc/init/ttyS0.conf with content:
+# # ttyS0 - agetty
+# #
+# # This service maintains a agetty on ttyS0.
+#
+# stop on runlevel [S016]
+# start on runlevel [23]
+#
+# respawn
+# exec agetty -h -L -w /dev/ttyS0 115200 vt102
start on fedora.serial-console-available DEV=* and stopped rc RUNLEVEL=[2345]
stop on runlevel [S016]