I'm relatively new to Linux (CentOS 7.2).I'm trying to get my Hurtworld servers to run from systemd so I can use that nice restart=always feature. However to get multiple HW servers running, I remember I had to use individual tmux sessions.This is one of my server start scripts:#!/bin/bashtmux new -d -s hurtworld5 './Hurtworld.x86_64 -batchmode \-nographics \-exec host 15871;queryport 15872;servername [EU/US] <color=#f50>HURTCRAFT.com X1/VANILLA INF 25.05</color>  www.hurtcraft.com;maxplayers 120;addadmin 76561197987029828;structurecomplexitylimit 100000;targetfps 60;spawncooldown -0.1 20;combatlogtimeout 30;afkkicktime 260000;chatconnectionmessagesenabled 0;vehicledecaytime 86400;stakedeauthtime 518400 \-logfile gamelog.txt'tmux detach -s hurtworld5These scripts work great for running the servers, but no matter what variation or extracts I use from this, I can't get it to launch through systemd. The best I've gotten is to have the actual HurtworldServer executable running, but it dies very quickly. I believe this is because I can't get it running through tmux this way, I think I remember having this exact problem trying to get the servers to work at all, until I got tmux going.So I think I need to know how to launch an application from within a tmux session created by systemd. But then I anticipate a new problem in systemd not registering the server executable as the main process, so restart=always will only restart tmux if it dies?Seems I'm stuck between a rock and a hard place and it's wrinkling my brain to oblivion so, if any of you great geniuses I've been learning from since I got this dedi, would like to help me solve this I'd be very grateful.I'd be willing to use something like upstart or monit instead, if it would afford me the option of using my script and tracking the real process some other way, or such.
How to use SystemD to run a game server 24/7?
centos;systemd;tmux