📜  树莓派创建 systemd 服务 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:14.863000             🧑  作者: Mango

代码示例1
[Unit]
Description=Ensure file exists on boot
After=multi-user.target

[Service]
ExecStart=/usr/bin/python3 /home/pi/ensure-file-exists.py
User=pi

[Install]
WantedBy=multi-user.target