you use a python script to start and stop the bot start.py in public_html/cgi-bin: #!/usr/bin/python3.7 import os, subprocess, signal print("Content-Type: text/html\n\n") counter = 0p = subprocess.Popen(['ps', '-u', 'mule'], stdout=subprocess.PIPE)# must match your username --------^^^^^^^^ out, err = p.communicate()for line in out.splitlines(): if 'node'.encode('utf-8') in line:# ^^^^^^^^^^^----- this has to match the filename of your bot script counter += 1 print("Bot already running.") if counter == 0: subprocess.Popen("/usr/bin/node /home/mule/node/index.js", shell=True)# ^^^^^^^^-- be sure to update it to your username print("Bot started!")and stop.py in same location: #!/usr/bin/python3.7 import os, subprocess, signal print("Content-Type: text/html\n\n") counter = 0p = subprocess.Popen(['ps', '-u', 'mule'], stdout=subprocess.PIPE)# must match your username --------^^^^^^^^ out, err = p.communicate()for line in out.splitlines(): if 'node'.encode('utf-8') in line:# ^^^^^^^--- this has to match the filename of your loop counter += 1 pid = int(line.split(None, 1)[0]) print("Stopping bot.") os.kill(pid, signal.SIGTERM) if counter == 0: print("Already stopped.")