no login prompt after adding systemctl custom script

Posted on

Hello,

We have added one python script to systemctl on boot, after reboot the server console showing only script out put, no login prompt / crtl+c just reloading script out put, any one can help to fix this ?

cat /etc/systemd/system/os_check.service
[Unit]
Description=OS validation and fix service
After=multi-user.target
Conflicts=getty@tty1.service

[Service]
Type=simple
Restart=always
StandardInput=tty-force
ExecStart=/usr/bin/python /usr/local/sap/scripts/os_check_and_fix_v1.0.py
WorkingDirectory=/usr/local/sap/scripts
RestartSec=10s

[Install]
WantedBy=multi-user.target

Responses