Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #37 from msabramo/osx-plist

Add a sample launchd plist for managing Stallion on Mac OS X
  • Loading branch information...
commit cd284594c91d8d8e427621e8c372f38ae4f1998e 2 parents 6ad5432 + 305765c
@perone authored
Showing with 24 additions and 0 deletions.
  1. +24 −0 stallion/write_plist.py
View
24 stallion/write_plist.py
@@ -0,0 +1,24 @@
+import sys
+
+plist_sample_text="""
+<?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>Stallone</string>
+
+ <key>ProgramArguments</key>
+ <array>
+ <string>{python}</string>
+ <string>-m</string>
+ <string>stallion.main</string>
+ </array>
+
+ <key>RunAtLoad</key>
+ <true/>
+</dict>
+</plist>
+""".strip()
+
+sys.stdout.write(plist_sample_text.format(python=sys.executable))
Please sign in to comment.
Something went wrong with that request. Please try again.