Request all-server restart-script



  • Hi,
    I want a restart skritpt for all my servers to restart all at certain time,or at a fixed hour,like 03:00 AM.I don't know to code....sorry :( Could somebody make this for me ? I think It will good for all the comunity,beacause increases performance...
    Sorry for my bad english.



  • @dino147
    just create a sh file with this code:

    #!/bin/bash
    
    ### Autorestart ###
    ###Server 1 ###  
    curl -k -X "GET" "https://scaleserver:5656/server/power/restart"  -H "X-Access-Server: YourXAccessCodeHereOfTheFirstServer"   -H "X-Access-Token: YourXAccessTokenOfTheFistServer";
    sleep 30s
    ### Server2 ###
    curl -k -X "GET" "https://scaleserver:5656/server/power/restart"  -H "X-Access-Server: YourXAccessCodeHereOfTheSecondServer"   -H "X-Access-Token: YourXAccessTokenOfTheSecondServer";
    

    And then cronjob it at fovoured hour and time



  • Thanks...............................


Log in to reply
 

Looks like your connection to PufferPanel Community was lost, please wait while we try to reconnect.