Okay so quick update, I found out what was giving the command for the shutdown, every time I would cntrl+c inside the machine it like sends a command to send that sigint command and it shuts down the server, thanks for helping guys, that was the issue , not pressing cntrl +c again lol