我想在systemd的myapp.service文件中添加多个命令。
我该怎么做呢?
[Unit]
Description=to serve myapp
[Service]
User=ubuntu
WorkingDirectory=/home/ubuntu/myapp
ExecStart=/home/ubuntu/.local/bin/pserve production.ini http_port=5000
ExecStart=/home/ubuntu/.local/bin/pserve production.ini http_port=5001
Restart=always
[Install]
WantedBy=multi-user.target
它报错,说参数无效。我想运行两个命令。
pserve production.ini http_port=5000
pserve production.ini http_port=5001
我该怎么做呢?