I have a screen command that I'd like run on my system as soon as it comes up.
I run a teamspeak 3 server, it needs to start first, then I'd like for a java application to execute next. I already have a ts3 start script written. BUt unfortunately I can't figure out a way to get this java application to start, I have to manually use a screen command to start the application, like this
cd /home/teamspeak/teamspeak3-server_linux-amd64/tsbot
screen -S ts3bot java -mx30M -jar JTS3ServerMod.jar
How would I go about making the above command run at startup?
run a command at startup
Re: run a command at startup
Append your command to /etc/rc.d/rc.local, and it will run at startup.
Michael
Michael