![Systemd Service ExecStart 命令太长](https://linux22.com/image/160015/Systemd%20Service%20ExecStart%20%E5%91%BD%E4%BB%A4%E5%A4%AA%E9%95%BF.png)
我有以下服务配置:
[Unit]
Description=Watch Bovon Handyhalterung
After=network-online.target
Wants=network-online.target
[Service]
ExecStart=/home/pi/Documents/bin/amazon-pricewatcher -url="https://www.amazon.de/Bovon-Handyhalterung-Verstellbarer-Handyhalter-360%C2%B0Rotation-Schwarz/dp/B077GNWNL8?pf_rd_p=0f6687bc-b0cb-44d9-9696-138c1879ad4f&pd_rd_wg=e0fEm&pf_rd_r=CA5EYTP96QYVH336GFFR&ref_=pd_gw_cr_simh&pd_rd_w=xOczT&pd_rd_r=ee8c3a4d-3220-417a-bccf-435aaf791d61" -email="[email protected]"
[Install]
WantedBy=multi-user.target
它说由于设置不当而失败。
如果我使用较短的 url 标志,它会起作用,所以我认为 url 标志太长(也许这使得命令太长)
感谢您的帮助!