0

How do i run a file named start.sh file on startup if im on ubuntu server? i decided to install ubuntu server on a pc that i rarely use so i can have my minecraft server on it ... and i want to be able to add plugins and such on it without having to go to that computer all the time (switch screens and such) and just use ftp and transfer all of the files that way and then restart my computer then the new plugins are loaded. can someone please help me with this? :)

(sorry if this was confusing its really late here atm)

0

1 Answer 1

0

Copy everything in the script (excluding #!/bin/xxxx) into /etc/rc.local.

You may need to run:

systemctl enable rc-local.service

Easy!

3
  • 1
    Are you sure that rc.local is executed by default since the switch to systemd? Would you also have to run systemctl enable rc-local.service, or is it set up by default? Jun 22, 2016 at 2:34
  • Am i supposed to make that file? cuz i dont have one ... and what if i want the server to start on start up and show me whatever its loading and allow me to type in commands for the server? Jun 22, 2016 at 3:11
  • Please open a new question on how to create the file.
    – fosslinux
    Jun 22, 2016 at 3:13

Not the answer you're looking for? Browse other questions tagged .