参考链接
Systemd 入门教程:命令篇
Systemd 入门教程:实战篇
man systemd.unit
man systemd.service
vim /etc/systemd/system/myservice.service
[Unit]
Description=My Demo Service
[Service]
Type=simple
ExecStart=/bin/echo start
ExecStop=/bin/echo stop
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target