I am trying to start a new screen in detached mode and run a shell script, which keeps running forever
My startup scrip contains following
screen -dmS live bash /home/mindedgescapital/projects/src/livetrade.sh
Screen command deosnot work in startup script. Getting following from logs
I want startup scrip to start a new detached screen and run my command in the detached screen. This is not happening.
`
cat /var/log/*.log | grep "google-startup-scripts.service"
Jul 9 21:56:44 trainer systemd[1]: google-startup-scripts.service: Succeeded.
Jul 11 10:27:56 trainer systemd[1]: google-startup-scripts.service: Succeeded.
Jul 12 06:03:35 trainer systemd[1]: google-startup-scripts.service: Succeeded.
Jul 13 10:27:53 trainer systemd[1]: google-startup-scripts.service: Succeeded.
Jul 14 10:27:53 trainer systemd[1]: google-startup-scripts.service: Succeeded.
Jul 14 20:54:12 trainer systemd[1]: google-startup-scripts.service: Succeeded.
Jul 14 21:55:45 debian systemd[1]: google-startup-scripts.service: Succeeded.
Jul 14 21:55:45 debian systemd[1]: google-startup-scripts.service: Unit process 1038 (screen) remains running after unit stopped.
Jul 14 22:16:28 debian systemd[1]: google-startup-scripts.service: Succeeded.
Jul 14 22:16:28 debian systemd[1]: google-startup-scripts.service: Unit process 1012 (screen) remains running after unit stopped.
Jul 14 22:33:32 trainer systemd[1]: google-startup-scripts.service: Succeeded.
Jul 14 22:40:55 debian systemd[1]: google-startup-scripts.service: Succeeded.
Jul 14 22:40:55 debian systemd[1]: google-startup-scripts.service: Unit process 1049 (screen) remains running after unit stopped.
`