mirror of
https://gitee.com/gitea/gitea.git
synced 2024-12-26 15:52:57 +08:00
Merge pull request #2399 from nanoant/patch/osx-launchd-script
OS X launchd script
This commit is contained in:
commit
98306a5d8a
39
scripts/launchd/io.gogs.web.plist
Normal file
39
scripts/launchd/io.gogs.web.plist
Normal file
@ -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>
|
Loading…
Reference in New Issue
Block a user