[Durham] Setting a command as a startup service?

Richard Patterson richard at helpquick.co.uk
Tue Dec 10 23:32:26 UTC 2013


You can try adding it to /etc/rc.local (debian based systems) just make 
sure the exit 0 is the last command in there.

Sent with AquaMail for Android
http://www.aqua-mail.com


On 10 December 2013 23:11:44 Andrew Glass <andrewglass3 at gmail.com> wrote:
> Hey guys
>
> Im a total noob when it comes to scripts and such things.
>
> Ive set up a very basic remote server for the daughter for a small
> christmas present to run as a minecraft server.  However I would like to
> set the .jar file to load on every boot as a service.  Could anyone help me
> with some simple code to get this file to load on boot?
>
> The most important command for this script to process is
>
> java -Xmx780M -Xms780M -jar minecraft_server.1.7.3.jar nogui
>
>
> Your help would be hugely appreciated
>
>
> Cheers
>
> Andy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.lug.org.uk/pipermail/durham/attachments/20131210/562e9059/attachment.html>


More information about the Durham mailing list