Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

305
Visualizações
Why is systemd service giving an error on start

I have created a new systemd service and keep getting an error when the service is started and Im not sure what could be up.

/usr/bin/env: node: No such file or directory
systemd[1]: test-panel.service: main process exited, code=exited, status=127/n/a

Here is my service file

[Unit]
Description=Test Panel
After=network.target
[Service]
User=root
WorkingDirectory=/var/test/panel/
ExecStart=/root/.nvm/versions/node/v16.6.1/bin/npx directus start
Restart=always
RestartSec=500ms
StartLimitInterval=0
[Install]
WantedBy=multi-user.target

I have other services that run just fine when the ExecStart is node with a script. Also when im in the active directory and call npx directus start manually, everything works fine.

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

I ended up changing around how I started Directus by adjusting ExecStart.

ExecStart=/root/.nvm/versions/node/v16.6.1/bin/node node_modules/directus/dist/start.js

This starts the service just like it should and I havent run into any downsides yet.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda