ho scritto uno script di avvio per ubuntu per avviare manualmente il mio server node.js o all'avvio. Ma termina sempre con lo stato 127 e non riesco a trovare più informazioni su cosa sta andando male. Se lo eseguo manualmente allora funziona e l'ho anche testato su Ubuntu 12.10 dove funziona anche ... non funziona su Ubuntu 10.04 che è il server di produzione che sto usando.server node.js in esecuzione utilizzando upstart causa 'terminato con stato 127' su 'ubuntu 10.04'
Lo script:
description ""
author ""
start on started mountall
stop on shutdown
respawn
respawn limit 20 5
# Max open files are @ 1024 by default. Bit few.
limit nofile 32768 32768
env HOME=/home/projects/<project_name>/data/current
script
export HOME=$HOME
chdir $HOME
exec sudo -u <user_to_launch_the_script> /usr/bin/node /home/projects/<project_name>/data/current/server.js 2>&1 >> /var/log/node.log
end script
alcuna idea di dove trovare ulteriori informazioni sullo stato 127? O come posso risolvere questo problema? ho cercato in /var/log/daemon.log e in /var/log/syslog.log .. ma non ci sono informazioni rilevanti eccetto per 'main process (29520) terminato con status 127'.
saluti,
Daan
http://tldp.org/LDP/abs/html/exitcodes. html – StuR