gem server start via launchd

P

Perry Smith

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">
<plist version="1.0">
<dict>
<key>Label</key>
<string>org.rubygems.server</string>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/gem</string>
<string>server</string>
</array>
<key>OnDemand</key>
<false/>
</dict>
</plist>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,241
Members
46,831
Latest member
RusselWill

Latest Threads

Top