Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
caddy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
caddy
Commits
8c392a02
Commit
8c392a02
authored
Nov 18, 2016
by
Matt Holt
Committed by
GitHub
Nov 18, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1267 from DenBeke/launchd
launchd service file for Mac
parents
b783caaa
30337ac3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
0 deletions
+43
-0
dist/init/mac-launchd/README.md
dist/init/mac-launchd/README.md
+12
-0
dist/init/mac-launchd/com.caddyserver.web.plist
dist/init/mac-launchd/com.caddyserver.web.plist
+31
-0
No files found.
dist/init/mac-launchd/README.md
0 → 100644
View file @
8c392a02
launchd service for macOS
=========================
This is a sample file for a
*launchd*
service on Mac.
Edit the paths and email in the plist file to match your info.
Start and Stop the Caddy launchd service using the following commands:
$ launchctl load ~/Library/LaunchAgents/com.caddyserver.web.plist
$ launchctl unload ~/Library/LaunchAgents/com.caddyserver.web.plist
More information can be found in this blogpost:
[
Running Caddy as a service on macOS X server
](
https://denbeke.be/blog/software/running-caddy-as-a-service-on-macos-os-x-server/
)
\ No newline at end of file
dist/init/mac-launchd/com.caddyserver.web.plist
0 → 100644
View file @
8c392a02
<?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>
com.caddyserver.web
</string>
<key>
EnvironmentVariables
</key>
<dict>
<key>
HOME
</key>
<string>
/Users/mathias
</string>
</dict>
<key>
ProgramArguments
</key>
<array>
<string>
sh
</string>
<string>
-c
</string>
<string>
ulimit -n 8192; cd /Users/mathias/Sites; ./caddy -agree -email my_email@domain.com -conf=/Users/mathias/Sites/Caddyfile
</string>
</array>
<key>
UserName
</key>
<string>
www
</string>
<key>
RunAtLoad
</key>
<true/>
<key>
KeepAlive
</key>
<true/>
<key>
WorkingDirectory
</key>
<string>
/Users/mathias/Sites
</string>
<key>
StandardOutPath
</key>
<string>
/Users/mathias/Sites/caddy.log
</string>
<key>
StandardErrorPath
</key>
<string>
/Users/mathias/Sites/caddy_error.log
</string>
</dict>
</plist>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment