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

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

    I actually used the answer from How do I run a node.js app as a background service? combined with what dwrz said above. In my case, I was creating a Discord bot that needed to be able to run when I was not around.

    With this service in place, I initially got the same error that the initial poster did, which brought me here. I was missing the #!/usr/bin/env node at the top of my executed node.js script.

    Since then, no problems, although I intend to see what else can be extended to the service itself.

提交回复
热议问题