Run multiple servers on start with screen [Ubuntu server]

Discussion in 'Systems Administration' started by buoobuoo, Oct 8, 2019.

  1. Hey guys,
    So I've been manually starting all my servers whenever my system reboots, but that isn't the best option so I was looking into running it automatically. I'm using systemd to run a service that runs my script. When i run `journalctl -u runserver` it says it ran on start but if i do screen -ls it shows no screens? in the script i run `screen -S proxy -d -m sh start.sh` I assume that screen has not started when i load the script? How can i work around this

    Edit- I'd like to add that the service works perfectly if i run it manually
     
    #1 buoobuoo, Oct 8, 2019
    Last edited: Oct 8, 2019
  2. Have you tried using cron(jobs)?