我正在尝试创建服务以在Linux服务器上运行我的应用程序。
Description=My service
Wants=network.target
After=syslog.target network-online.target
[Service]
Type=simple
ExecStart=\absolute-path\myappfolder sudo yarn dev
Restart=on-failure
RestartSec=10
KillMode=process
[Install]
WantedBy=multi-user.target
启动服务后,检查状态会出现以下错误
Main process exited, code=exited, status=203/EXEC
Unit entered failed state.
Failed with result 'exit-code'.