{"id":59,"date":"2012-09-12T00:48:50","date_gmt":"2012-09-12T00:48:50","guid":{"rendered":"http:\/\/timbertops.co.uk\/blog\/?p=59"},"modified":"2012-09-20T01:56:23","modified_gmt":"2012-09-20T01:56:23","slug":"git-maybe-hard-but-upstart-ubuntu-server-is-easy","status":"publish","type":"post","link":"https:\/\/timbertops.co.uk\/index.php\/2012\/09\/12\/git-maybe-hard-but-upstart-ubuntu-server-is-easy\/","title":{"rendered":"Git maybe hard but upstart at least is easy"},"content":{"rendered":"<p>I needed to have my minecraft server auto start when the server was powered on so after a couple of hours and lots or trial and error I found this <a href=\"http:\/\/onubuntu.blogspot.co.uk\/2011\/06\/run-rtorrent-on-startup-with-screen-and.html\" target=\"_blank\">helpful site<\/a> and 5 minutes later my minecraft server was auto starting below is the final code used in my upstart script.<\/p>\n<p><!--more--><\/p>\n<p><code lang=\"bash[lines]\">description \"Start minecraft server upstart job\"<br \/>\nstart on (local-filesystems and net-device-up and runlevel [2345])<br \/>\nstop on runlevel [016]<br \/>\nchdir \/home\/$USERNAME\/minecraft<br \/>\nscript<br \/>\nsu<!--DVFMTSC--> $USERNAME -c \"screen -d -m -S minecraft_server java -Xmx1024M -Xms1024M -jar craftbukkit.jar\"<br \/>\nend script<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I needed to have my minecraft server auto start when the server was powered on so after a couple of hours and lots or trial and error I found this helpful site and 5 minutes later my minecraft server was auto starting below is the final code used in my upstart script.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33,12,24],"tags":[37,35,36,27,25,34],"class_list":["post-59","post","type-post","status-publish","format-standard","hentry","category-minecraft","category-programming","category-ubuntu","tag-autostart","tag-minecraft-2","tag-screen","tag-server","tag-ubuntu-2","tag-upstart"],"_links":{"self":[{"href":"https:\/\/timbertops.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/59","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/timbertops.co.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/timbertops.co.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/timbertops.co.uk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/timbertops.co.uk\/index.php\/wp-json\/wp\/v2\/comments?post=59"}],"version-history":[{"count":14,"href":"https:\/\/timbertops.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/59\/revisions"}],"predecessor-version":[{"id":85,"href":"https:\/\/timbertops.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/59\/revisions\/85"}],"wp:attachment":[{"href":"https:\/\/timbertops.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=59"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/timbertops.co.uk\/index.php\/wp-json\/wp\/v2\/categories?post=59"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/timbertops.co.uk\/index.php\/wp-json\/wp\/v2\/tags?post=59"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}