You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Systemd unit 中有一些字段是可以指定多次的,例如下文介绍的服务的 `ExecStart=`。如果你想在 `systemctl edit` 中覆盖这些字段,那么需要先指定空值,再设置,类似下面这样:
88
+
89
+
```ini
90
+
ExecStart=
91
+
ExecStart=/your/new/command arg1 arg2
92
+
```
93
+
70
94
Unit 的配置文件是一个 INI 格式的文件,通常包括一个 `[Unit]` section,然后根据 unit 的类型不同有不同的 section。例如一个服务的配置文件会有 `[Service]` section,并通常会包含一个 `[Install]` section。以 cron 服务的配置文件为例:
0 commit comments