Hello,
I've got that script to start ots with the system:
it is in /etc/init.d and it has chmod +x it was added correctly to the startup: update-rc.d ot.sh multiuser 99
but after reboot ots doesn't start, even a screen is not created.
when I want to run that ot.sh file by a commond sh ot.sh - it is said:
What might be wrong?
I've got that script to start ots with the system:
Code:
#!/bin/bash
while true
do
screen -S ots
cd ots
./theforgottenserver
done
it is in /etc/init.d and it has chmod +x it was added correctly to the startup: update-rc.d ot.sh multiuser 99
but after reboot ots doesn't start, even a screen is not created.
when I want to run that ot.sh file by a commond sh ot.sh - it is said:
Code:
ot.sh: line 5: ./theforgottenserver: Permission denied
ot.sh: line 4: cd: ots: No such file or directory
What might be wrong?