20 字
1 分钟
Creating a New Service in Linux
sudo nano /lib/systemd/system/xxx.service
[Unit]
Description=Your Service Name
After=network.target syslog.target
Wants=network.target
[Service]
Type=simple
ExecStart=Your File Path
[Install]
WantedBy=multi-user.target
systemctl daemon-reload
systemctl start xxx.service
Creating a New Service in Linux
https://tski.uk/blog/en/linux-new-service/
作者
Tokisaki Galaxy
发布于
2020-02-05
许可协议
CC BY