You've already forked www.colben.cn
update
This commit is contained in:
@@ -215,7 +215,7 @@ Runlevel 6 | runlevel6.target | reboot.target
|
||||
- loginctl
|
||||
|
||||
# Unit 配置文件
|
||||
### [Unit]
|
||||
## [Unit]
|
||||
- Description: 简短描述
|
||||
- Documentation: 文档地址
|
||||
- Requires: 当前 Unit 依赖的其他 Unit,如果它们没有运行,当前 Unit 会启动失败
|
||||
@@ -226,7 +226,7 @@ Runlevel 6 | runlevel6.target | reboot.target
|
||||
- Conflicts: 这里指定的 Unit 不能与当前 Unit 同时运行
|
||||
- Condition...: 当前 Unit 运行必须满足的条件,否则不会运行
|
||||
- Assert...: 当前 Unit 运行必须满足的条件,否则会报启动失败
|
||||
### [Service]
|
||||
## [Service]
|
||||
- WorkingDirectory: 设置进程的工作目录
|
||||
- 特殊值 "~" 表示 User= 用户的家目录
|
||||
- 设为一个以 RootDirectory= 为基准的绝对路径
|
||||
@@ -271,7 +271,7 @@ Runlevel 6 | runlevel6.target | reboot.target
|
||||
- on-watchdog: 超时退出,才会重启
|
||||
- always: 不管是什么退出原因,总是重启
|
||||
- RestartSec: 系统重启前等待的秒数
|
||||
### [Install]
|
||||
## [Install]
|
||||
- WantedBy: 它的值是一个或多个 Target,当前 Unit 激活时(enable)符号链接会放入/etc/systemd/system目录下面以 Target 名 + .wants 后缀构成的子目录中
|
||||
- RequiredBy: 它的值是一个或多个 Target,当前 Unit 激活时,符号链接会放入/etc/systemd/system目录下面以 Target 名 + .required 后缀构成的子目录中
|
||||
- Alias: 当前 Unit 可用于启动的别名
|
||||
|
Reference in New Issue
Block a user