Well i am using rtoolkit as a server wrapper, and byobu (like screen) i was wondering how do i make it so it will start the server on boot. Currently i placed rtoolkit in etc/init.d and i am using the following commands to link it so it will start on startup and stop on shutdown Code: ln -s /etc/init.d/rtoolkit /etc/rc5.d/S50rtoolkit ln -s /etc/init.d/rtoolkit /etc/rc5.d/K50rtoolkit
Ewww, that would run your server as root (without some additional modification). Not good. An easier way is to log into the computer as a regular user, then run: Code: crontab -e This will open your user's crontab. Then just type the following on a new line: Code: @reboot YourMinecraftStartupCommand(s) So for example, my line is: Code: @reboot /home/USER/bin/minecraft start Which calls a script called 'minecraft' located in /home/USER/bin, and passes the 'start' argument to the script. You can also add the startup command to your /home/USER/.bash_profile file and it will run as soon as that user logs in.
@Darq is correct. Considering the scripts in init.d are run as root, you can have it switch to any given user before executing a particular command.
You're right, I prostrate myself before yous guys and beg of your forgivenesses. My post has been updated with more accurate info.