[Unit] Description=Return to terminal After=graphical-session.target [Service] Type=oneshot ExecStart=/bin/bash -c '/opt/scripts/backtotty.sh' User=root NoNewPrivileges=true [Install] WantedBy=multi-user.target