13 lines
500 B
SYSTEMD
13 lines
500 B
SYSTEMD
|
[Unit]
|
||
|
Description=buildkitd
|
||
|
# 指定了在系统启动时该服务应该在 network.target 启动后才启动。这确保了服务在网络可用后才会被启动
|
||
|
After=network.target
|
||
|
|
||
|
[Service]
|
||
|
Type=notify
|
||
|
ExecStart=/usr/local/buildkit/bin/buildkitd
|
||
|
# ExecStart=/usr/local/bin/buildkitd --oci-worker=false --containerd-worker=true
|
||
|
|
||
|
[Install]
|
||
|
# 指明了在系统进入 multi-user.target 时(通常是完全启动并准备好用户登录的状态)启用这个服务
|
||
|
WantedBy=multi-user.target
|