Permanent Process w/ cPanel User
Hi guys.
I have a cPanel user created on my Linux CentOS 6.7 dedicated server which is hosting the files for SteamCMD for a CS Source server. Unfortunately I have to be logged into SSH and have the server running through that. (custom start script: ./startserver.sh) but when SSH closes or loses connection the Counter-Strike server stops. How can I make the server start script a permanently running process so that it will automatically start or restart when it crashes? I am not logged into SSH via Root, however the cPanel account itself does have SSH access.
How can I have the CSS server running without having to be in SSH? Can I run it as a background process?
Please help me.
Thanks.
-
If the application is not designed to run as a daemon, then you'll need to run it via screen or tmux. You'll have to start the application via SSH, but can disconnect from the server once it's running. A high level over view of the process is: 1. Login to server via SSH 2. Start screen or tmux (or reattach to a current session) 3. Start your application 4. Close your SSH connection I recommend reading more about tmux (my preferred) or screen. They are very powerful and can be a bit confusing at first. 0
Please sign in to leave a comment.
Comments
1 comment