Closed nzuhdi closed 8 years ago
127 usually indicates the binary wasn't found. Double check your path?
You're right. It is because of environment path. Thanks!
Here's my new systemd service with Environment=PATH.
root@debian:~# cat /etc/systemd/system/jingo.service
[Unit]
Description=Jingo
[Service]
ExecStart=/root/.nvm/versions/node/v5.2.0/bin/jingo -c /root/config.yaml
Restart=always
User=root
Group=root
Environment=PATH=/root/.nvm/versions/node/v5.2.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
Environment=NODE_ENV=production
[Install]
WantedBy=multi-user.target
Can someone help me with Jingo + systemd ?