Welcome to Centmin Mod Community
Register Now

Install Operations in SCREEN #65

Discussion in 'Install & Upgrades or Pre-Install Questions' started by tuwi, Dec 18, 2016.

  1. tuwi

    tuwi New Member

    10
    2
    3
    Dec 17, 2016
    Ratings:
    +3
    Local Time:
    11:30 PM
    Hi,
    i've been using this amazing product for some time now and often happens that my network connection would drop (dont ask, universe hates me ) so I was thinking that why the operations inside centmin arent done via screen ? A screen would allow the process to continue even if the user is disconnected
    I actually opened a github issue ( Operations in SCREEN · Issue #65 · centminmod/centminmod · GitHub )
    and was told to ask it here as ollows

    centminmod commented a day ago
    Another nice question for the forums Centmin Mod Community ;) Which operations you talking about ? initial install ? You can do startup a screen session for that and then run initial install. Or you mean for nginx and php-fpm compiles ?

    @centminmod i was referring more to the initial setup as if that goes wrong on that phase you have to redo the server over..
    Also would be nice to have in other processes but mostly in the init but the point is that i always forget to do that (dunno why just has a tendency to slip my mind) and since it happened to me a couple of times i recalled that many installers do that (they run inside a screen )
    I guess you can also put a reminder or something




     
  2. eva2000

    eva2000 Administrator Staff Member

    55,155
    12,249
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,825
    Local Time:
    7:30 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Yeah for initial install you can easily just run it via screen manually i.e. Who uses Screen for linux ? | Centmin Mod Community

    so for centmin mod 123.09beta01 install would be
    Code (Text):
    yum -y install screen
    screen -dmS cmm-install
    screen -r cmm-install
    yum -y update; curl -O https://centminmod.com/betainstaller.sh && chmod 0700 betainstaller.sh && bash betainstaller.sh


    as to why other operations aren't using screen automatically, the end user wouldn't visually know if the process was completed or not and end up re-running it anyway if their ssh session got disconnected

    same with initial install to visually see completion versus not knowing whether install completed properly. You don't want end users building and developing their sites on the server without 100% knowing that all initial installed components were installed - which you can visually inspect and see. The safe assumption for end users would be if you got disconnected, then install may not of completed so best to restart again.
     
  3. tuwi

    tuwi New Member

    10
    2
    3
    Dec 17, 2016
    Ratings:
    +3
    Local Time:
    11:30 PM
    Thanks for the tip but i'm not sure if I'm following you. If I launch an operation via screen and i get disconnected I can safely reattach to that session whenever I want and check its status (screen -x ? )
     
  4. eva2000

    eva2000 Administrator Staff Member

    55,155
    12,249
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,825
    Local Time:
    7:30 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Yes to reattach if screen name cmm-install
    Code (Text):
    screen -r cmm-install