I run a PaperMC server and the restart function requires a start.sh file. I have created the file and it only works when I open it from the Windows Subsystem for Linux Ubuntu terminal, but not when I open it from my file explorer or use the restart function. When the server starts up, it is running Java and when I use the restart function, it outputs "Attempting to restart with ./start.sh" I use that command in the normal shell, but it doesn't seem like it works when Java running in the normal shell tries to use it. Is it because I use the Windows java in the Ubuntu command shell? Can someone help me find a solution for this?

New contributor
Heccity is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
  • If it works from WSL and you’re asking how to get it to work from Windows then your question is off-topic here and should rather be asked on Super User. – dessert Mar 14 at 21:50
  • But within WSL, when I restart the server, it seems to be using the Windows protocol to open the script and I don't want that. If there's a way I can set Windows to open the file using WSL, then that would be great. – Heccity Mar 14 at 22:06

Your Answer

Heccity is a new contributor. Be nice, and check out our Code of Conduct.

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.