Merge remote-tracking branch 'origin/pull/854'
This commit is contained in:
commit
2a525b744a
@ -287,6 +287,14 @@ guarantee nginx waits for this service to start. Edit
|
|||||||
Before=nginx.service
|
Before=nginx.service
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## launchd
|
||||||
|
|
||||||
|
If you are on macOS, you can use the launchd service available in `contrib/libreddit.plist`.
|
||||||
|
|
||||||
|
Install it with `cp contrib/libreddit.plist ~/Library/LaunchAgents/`.
|
||||||
|
|
||||||
|
Load and start it with `launchctl load ~/Library/LaunchAgents/libreddit.plist`.
|
||||||
|
|
||||||
## Building
|
## Building
|
||||||
|
|
||||||
```
|
```
|
||||||
|
19
contrib/libreddit.plist
Normal file
19
contrib/libreddit.plist
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
<?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>libreddit</string>
|
||||||
|
|
||||||
|
<key>Program</key>
|
||||||
|
<string>libreddit</string>
|
||||||
|
|
||||||
|
<key>KeepAlive</key>
|
||||||
|
<true/>
|
||||||
|
|
||||||
|
<key>RunAtLoad</key>
|
||||||
|
<true/>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user