Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Permanent Process w/ cPanel User

Discussion in 'Security' started by Im#NuMBeR1, Mar 12, 2016.

  1. Im#NuMBeR1

    Im#NuMBeR1 Registered

    Joined:
    Jun 1, 2012
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    126
    cPanel Access Level:
    Root Administrator
    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.
     
  2. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,563
    Likes Received:
    43
    Trophy Points:
    308
    cPanel Access Level:
    Root Administrator
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice