Skip to content

Instantly share code, notes, and snippets.

@kapkaev
Created May 17, 2012 14:37
Show Gist options
  • Select an option

  • Save kapkaev/2719334 to your computer and use it in GitHub Desktop.

Select an option

Save kapkaev/2719334 to your computer and use it in GitHub Desktop.

Revisions

  1. kapkaev created this gist May 17, 2012.
    21 changes: 21 additions & 0 deletions io.redis.redis-server.plist
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,21 @@
    #sudo vim /Library/LaunchDaemons/io.redis.redis-server.plist

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <key>Label</key>
    <string>io.redis.redis-server</string>
    <key>ProgramArguments</key>
    <array>
    <string>/usr/local/bin/redis-server</string>
    <string>/optional/path/to/redis.conf</string>
    </array>
    <key>RunAtLoad</key>
    <true/>
    </dict>
    </plist>

    #sudo launchctl load /Library/LaunchDaemons/io.redis.redis-server.plist
    #sudo launchctl start io.redis.redis-server
    #sudo launchctl stop io.redis.redis-server