[Unit] Description = wybb watchdog service After=multi-user.target [Service] ExecStart = /home/forlinx/lk/wuyuanbiaoba/dist/wuyuan.app #按照实际目录来填写 Type = simple Restart=always RestartSec=30s # 检查一次,如果服务失败则重启 [Install] WantedBy = multi-user.target # 存放到 ubuntu /etc/systemd/system