Script that will stop all servers.



  • Hello guys, I am looking for a script that will stop all servers on the node (or just one by one).
    I have already found this:
    https://community.pufferpanel.com/topic/127/server-autorestart/2
    .. and this:
    https://community.pufferpanel.com/topic/426/request-all-server-restart-script
    .. but non of this gives me a clue how to do that. I know how to use a cron tab to setup this things at preferred time, but don't know why this is not working for me:

    curl -k -X "GET" "https://scaleserver:5656/server/power/restart"  -H "X-Access-Server: YourXAccessCodeHereOfTheFirstServer"   -H "X-Access-Token: YourXAccessTokenOfTheFistServer";
    

    where:
    scaleserver - is the correct domain name which i have defined during PufferPanel instalation (or localhost)
    5656 - is the Node HTTP Port
    YourXAccessCodeHereOfTheFirstServer - is the Server UUID
    YourXAccessTokenOfTheFistServer - don't know what it is..? Already tryied secred password for Remote Connection.

    Still not working. I have tryied to achieve result in many ways, non of them gives me success.

    Please have mercy, I have installed PufferPanel yesterday.


 

3
Online

789
Users

819
Topics

3.5k
Posts