Creating a New Service in Linux 1sudo nano /lib/systemd/system/xxx.service 1234567891011[Unit]Description=Your Service NameAfter=network.target syslog.targetWants=network.target[Service]Type=simpleExecStart=Your File Path[Install]WantedBy=multi-user.target 12systemctl daemon-reloadsystemctl start xxx.service 1sudo nano /lib/systemd/system/xxx.service 1234567891011[Unit]Description=Your Service NameAfter=network.target syslog.targetWants=network.target[Service]Type=simpleExecStart=Your File Path[Install]WantedBy=multi-user.target 12systemctl daemon-reloadsystemctl start xxx.service Linux #Linux #service Creating a New Service in Linux https://tokisaki.top/blog/linux-new-service/ 作者 Tokisaki Galaxy 发布于 2020年2月5日 许可协议 Using Screen on Raspberry Pi 上一篇 Setting Up a DNS Server on Raspberry Pi 下一篇