Answer the question
In order to leave comments, you need to log in
How to output data from script to tty1 text console after linux boot?
1. There is a python script that I want to run through systemd and get output when Linux starts on an active text console, usually / dev / tty1 (via Alt-F1).
For example,
[Unit]
Description=My Service
After=basic.target
[Service]
Type=simple
User=root
Environment=TERM=linux HOME=/opt/mydir
ExecStart=/usr/bin/env python /opt/mydir/starter.py
Answer the question
In order to leave comments, you need to log in
A quick googling suggests
StandardInput=tty
StandardOutput=tty
TTYPath=/dev/tty1
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question