add systemd unit example (#172)

* 添加时区

* Update README.md

给例子添加更多可用参数

* 修正webui的描述

* 添加shell脚本示例

* 添加shell脚本示例

* Update README.md

add systemd example
This commit is contained in:
UVJkiNTQ authored and GitHub committed 2022-07-11 21:29:04 +08:00
1 parent ee194283d8
commit eb9c81c1a1
1 file changed
+27
+27
View File
@@ -57,6 +57,33 @@ Linux下以daemon进程启动,录像和日志文件保存在执行目录下,
、[Windows](https://blog.waitsaber.org/archives/169) 教程
与 [常见问题](https://blog.waitsaber.org/archives/167) 解决方案
开机自启可参照以下模板创建systemd unit:
创建service文件:
> $ nano ~/.config/systemd/user/biliupd.service
```
[Unit]
Description=Biliup Startup
Documentation="https://biliup.github.io/biliup"
Wants=network-online.target
After=network-online.target
[Service]
Type=simple
WorkingDirectory=[在此填入你的config所在目录]
ExecStart=/usr/bin/biliup -v
ExecReload=/usr/bin/biliup restart
ExecStop=/usr/bin/biliup stop
[Install]
WantedBy=default.target
```
启用service并启动:
```shell
$ systemctl --user enable biliupd
$ systemctl --user start biliupd
```
**文档地址**:<https://biliup.github.io/biliup>
## Docker使用 🔨