{"issue":{"pull_request":{"diff_url":"https://github.com/sstephenson/ruby-build/pull/85.diff","html_url":"https://github.com/sstephenson/ruby-build/pull/85","patch_url":"https://github.com/sstephenson/ruby-build/pull/85.patch"},"state":"open","user":{"avatar_url":"https://secure.gravatar.com/avatar/8c94d965389694bd5adc14679977fd5d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"8c94d965389694bd5adc14679977fd5d","url":"https://api.github.com/users/jc00ke","login":"jc00ke","id":18191},"milestone":null,"labels":[],"updated_at":"2011-11-09T18:25:13Z","assignee":null,"comments":5,"closed_at":null,"url":"https://api.github.com/repos/sstephenson/ruby-build/issues/85","body":"","html_url":"https://github.com/sstephenson/ruby-build/issues/85","title":"Adding definition for MagLev 1.0.0","number":85,"id":2107740,"created_at":"2011-11-01T06:31:01Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/9bd58154548fedf9eb0b4cdb575763c1?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"9bd58154548fedf9eb0b4cdb575763c1","url":"https://api.github.com/users/Monty","login":"Monty","id":12963},"updated_at":"2011-11-09T18:25:13Z","url":"https://api.github.com/repos/sstephenson/ruby-build/issues/comments/2685020","body":"Whoa, this looks like it could stand some improvement. An explanation: There are two shell scripts. Install.sh only needs to be run one time ever, it checks for and adjusts memory parameters and adds a line to /etc services. Then it calls update.sh, which will download a GemStone server file if necessary and then call rake build:maglev and start the stone process running. Since install.sh needs sudo privs, I'd skip it if it's already been run. e.g.\r\n\r\n# Be smart about whether MagLev has already been installed.\r\nunset MAGLEV_HOME\r\nif [ `grep -sc \"^gs64ldi\" /etc/services` -eq 0 ]; then\r\n    bash ./install.sh\r\nelse\r\n    bash ./update.sh\r\nfi\r\n\r\n","id":2685020,"created_at":"2011-11-09T18:25:13Z"}}