# Gem server start via launchd

**URL:** <https://rubytalk.org/t/gem-server-start-via-launchd/43958>\
**Category:** ruby-talk\
**Created:** [22 January 2008 17:10 UTC](https://rubytalk.org/t/gem-server-start-via-launchd/43958 "2008-01-22T17:10:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Perry\_Smith](https://avatars.discourse-cdn.com/v4/letter/p/db5fbb/32.png) [@Perry\_Smith](https://rubytalk.org/u/Perry_Smith)\
**Post date:** [22 January 2008 17:10 UTC](https://rubytalk.org/t/gem-server-start-via-launchd/43958/1 "2008-01-22T17:10:53Z")

</div>

I put this in /Library/LaunchDaemons

It will start the Ruby Gem documentation server at boot. I don't know  
how to get it to start when the first request comes in.

The gems that ships with 10.5 is too old. So, update it first with: gem  
update --system

\<?xml version="1.0" encoding="UTF-8"?\>  
\<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"  
"[http://www.apple.com/DTDs/PropertyList-1.0.dtd](http://www.apple.com/DTDs/PropertyList-1.0.dtd)"\>  
\<plist version="1.0"\>  
&nbsp;&nbsp;&nbsp;&nbsp;\<dict\>  
&nbsp;&nbsp;\<key\>Label\</key\>  
&nbsp;&nbsp;\<string\>org.rubygems.server\</string\>  
&nbsp;&nbsp;\<key\>ProgramArguments\</key\>  
&nbsp;&nbsp;\<array\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<string\>/usr/bin/gem\</string\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<string\>server\</string\>  
&nbsp;&nbsp;\</array\>  
&nbsp;&nbsp;\<key\>OnDemand\</key\>  
&nbsp;&nbsp;\<false/\>  
&nbsp;&nbsp;&nbsp;&nbsp;\</dict\>  
\</plist\>

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).
