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

前端 未结 6 2052
时光取名叫无心
时光取名叫无心 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:29

    If that is a copy/paste from your script, you've permuted this line:

    #!/usr/env/bin bash
    

    There's no #!/usr/env/bin, you meant #!/usr/bin/env.

提交回复
热议问题