#restart.sh-bash: ./restart.sh: cannot execute: required file not found

1 messages · Page 1 of 1 (latest)

cloud idol
#

#!/bin/sh
cd /home/server_network_name/network/servers/server_side
screen -AmdS server_side sh -i start.sh

pwd command saying its the right dc and manually i can start the start.sh but when i start the restart.sh with ./restart.sh its keep saying that error but its 100% in that directionary. idk what to do. Restart file to create a loop after stop server for automaticly restart at specific time caused by plugin UltimateAutoRestart. I dont know what to do. This is the guid i did step by step: https://norska.dev/docs/free/uar/troubleshoot

#

i just want that the server keep restarting... anyone a idea? linux ubuntu putty ssh connection, directionary is correct. Maybe you guys can send me your restart.sh command lines so i can compare for issues? idk what to do further

#

when i start in the directionary like that run thrue ./restart.sh
example@user:~/network/servers/server_side$ ./restart.sh
-bash: ./restart.sh: cannot execute: required file not found
but the file is in there beside start.sh and start.sh does work

#

i dont understand this.

#

is anyone using an auto restart plugin and know how to setup the second .sh file beside start.sh for causing the restart loop after stop? can someone send me this please? wish anyone a good evening tho and thanks

hollow spruce
#

do you have Screen installed @cloud idol ?

#

idrk what I'm talking about, but

cloud idol
#

I will look at it tomorrow! was sitting all night long to solve this..
but a generally question. If i type normal ingame /restart vanilla spigot its restarting, right? the Plugin UltimateAutoRestart is just saying auto-safe and restart but after shutting down, its not starting again up. In the spigot.yml its the correct ./start.sh data. What caused the boot problem after shut down?

#

thanks yet, i will write tomorrow again if its helped

cloud idol
#

OMG

#

yes

#

thank you

#

actually it was just installing dos2unix and convert this restart.sh file so it can start

#

thank you so much

#

this one also helped thanks to ur respond

cloud idol
#

For anyone who cant start the second .sh file for linux: in my case you need to install dos2unix (sudo apt-get install dos2unix) and convert the restart.sh file (not the start.sh file) via dos2unix restart.sh. After that you can start ./restart.sh and the plugin restarts the server from now on. The script on his website was good for the codes for the .sh files (https://norska.dev/docs/free/uar/troubleshoot/ (there is a typo at atp, its apt (stands for application) and its correct apt-get..)) Anyways: this one helped me with my issue: https://unix.stackexchange.com/questions/27054/bin-bash-no-such-file-or-directory/27067#27067
The Issue was, that the restart file cant find the directionary or file (first lane), but after converting like i said above, the script now works. Just in case, anyone has issues with that. UltimateAutoRestart If anyone dont understand this can write here, i will help then.4366minecraftaccept