Fixing a systemd service 203/EXEC failure (no such file or directory)

前端 未结 6 2048
时光取名叫无心
时光取名叫无心 2020-12-07 21:46

I\'m trying to set up a simple systemd timer to run a bash script every day at midnight.

systemctl --user status backup.service fails and logs the follo

6条回答
  •  春和景丽
    2020-12-07 22:21

    When this happened to me it was because my script had DOS line endings, which always messes up the shebang line at the top of the script. I changed it to Unix line endings and it worked.

提交回复
热议问题