./Kaillera script
Greetings.
I have a newbie question. I am running a server by executing a command "./kaillera" in Terminal. The problem is, if I close my terminal, it closes the server program "Kaillera". How do I execute it as a process so that it runs in the background itself AND every time automatically when the system is switched on? Again, the file is just called "./kaillera" and there is no make or install valid for it. BTW, I'm running Centos 5. So any help would be greatly appreciated. :) |
Code:
./kaillera & |
Yes, I tried that and it did not work :(
After I close my SSH, even Kaillera closes. |
Ok, create a shellscript like this
Code:
#!/bin/bash |
Thanks a lot. :)
That fixed the problem. But I had to write this:- Code:
#!/bin/bash Now is there anyway activate this automatically when it boots up? |
add
Code:
/root/kailleraserv-0.86/kaillera & easiest way to add that is by typing Code:
echo "/root/kailleraserv-0.86/kaillera &" >> /etc/rc.local |
I doubt that would work since I tried it earlier.
Remember, I had to type "./kaillera &" to run the server? So is it possible to add "sh /root/kailleraserv-0.86/kaillera.sh" ? |
yes just call your shell script that contains the "./kaillera $" command and if it's chmodded to execute no need to put sh in front.
|
All times are GMT -5. The time now is 11:10 PM. |