summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-01-14 14:42:55 +0800
committerUnknwon <u@gogs.io>2016-01-14 14:42:55 +0800
commit98306a5d8a58cef0e57920935f996c575a56f36e (patch)
treedd052dc90044b33c5f81704e8f6f754f39dcd44f
parentcb92af4a6c7bc7090ecaed8dc99e89c45bce697c (diff)
parent653e1506adb9f1a4bc4da794c4a0c9eac0860c1c (diff)
downloadgitea-98306a5d8a58cef0e57920935f996c575a56f36e.tar.gz
gitea-98306a5d8a58cef0e57920935f996c575a56f36e.zip
Merge pull request #2399 from nanoant/patch/osx-launchd-script
OS X launchd script
-rw-r--r--scripts/launchd/io.gogs.web.plist39
1 files changed, 39 insertions, 0 deletions
diff --git a/scripts/launchd/io.gogs.web.plist b/scripts/launchd/io.gogs.web.plist
new file mode 100644
index 0000000000..2a5ec7d691
--- /dev/null
+++ b/scripts/launchd/io.gogs.web.plist
@@ -0,0 +1,39 @@
+<?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.gogs.web</string>
+ <!-- assumes Gogs is running under 'git' account -->
+ <!-- modify below to reflect your settings -->
+ <key>UserName</key>
+ <string>git</string>
+ <key>GroupName</key>
+ <string>git</string>
+ <key>ProgramArguments</key>
+ <array>
+ <!-- assumes Gogs is installed in /Users/git/gogs -->
+ <!-- modify below to reflect your settings -->
+ <string>/Users/git/gogs/gogs</string>
+ <string>web</string>
+ </array>
+ <key>RunAtLoad</key>
+ <true/>
+ <key>KeepAlive</key>
+ <true/>
+ <!-- assumes Gogs is installed in /Users/git/gogs -->
+ <!-- modify below to reflect your settings -->
+ <key>WorkingDirectory</key>
+ <string>/Users/git/gogs/</string>
+ <key>StandardOutPath</key>
+ <string>/Users/git/gogs/log/stdout.log</string>
+ <key>StandardErrorPath</key>
+ <string>/Users/git/gogs/log/stderr.log</string>
+ <!-- default 256 is too low for Gogs needs using parallel pipes -->
+ <key>SoftResourceLimits</key>
+ <dict>
+ <key>NumberOfFiles</key>
+ <integer>8192</integer>
+ </dict>
+ </dict>
+</plist>