Update README.md
This commit is contained in:
@@ -121,12 +121,18 @@ Then, create `/etc/init.d/blog`:
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
#!/sbin/openrc-run
|
#!/sbin/openrc-run
|
||||||
|
name="blog"
|
||||||
|
directory="/var/lib/blog"
|
||||||
command="/usr/bin/ape"
|
command="/usr/bin/ape"
|
||||||
command_args="/var/lib/blog/blog.com -p 443 -p 80 \
|
command_args="/var/lib/blog/blog.com -p 443 -p 80 \
|
||||||
-K /path/to/privkey.pem \
|
-K /path/to/privkey.pem \
|
||||||
-C /path/to/fullchain.pem \
|
-C /path/to/fullchain.pem \
|
||||||
-J"
|
-J"
|
||||||
command_user="blog:blog"
|
command_user="blog:blog"
|
||||||
|
command_background="yes"
|
||||||
|
pidfile="/run/${RC_SVCNAME}.pid"
|
||||||
|
output_log="/var/log/blog.log"
|
||||||
|
error_log="/var/log/blog.err"
|
||||||
export BLOG_NO_BROWSER=1
|
export BLOG_NO_BROWSER=1
|
||||||
depend() {
|
depend() {
|
||||||
need net
|
need net
|
||||||
|
|||||||
Reference in New Issue
Block a user