Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

304
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda