Answer the question
In order to leave comments, you need to log in
Why is there a code=exited, status=210/CHROOT error when running a node.js app as a standalone service with systemd?
Config:
[Unit]
Description=LTPS NodeJS App
After=network-online.target
[Service]
Restart=on-failure
WorkingDirectory=/home/{user}/test-server
ExecStart= /home/{user}/.nvm/versions/node/v10.16.0/bin/nodemon /home/{user}/test-server/app.js
[Install]
WantedBy=multi-user.target
Answer the question
In order to leave comments, you need to log in
Because /usr/bin is in the "default" PATH, and "/home/{user}/.nvm/versions/node/v10.16.0/bin" only in the user's
PS forgot
User= / Group=
There was such a mistake when the comments were not before setting the parameter, but at the end of the line. For example:
you need to replace with (or remove the comment altogether):
WorkingDirectory=/var/www #комментарий
#комментарий
WorkingDirectory=/var/www
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question