node comme démon


nano /etc/init/espion_server.conf

description "espion_server node.js server"
author      "jerome"

start on startup
stop on shutdown

script
    # We found $HOME is needed. Without it, we ran into problems
    export HOME="/root"

    exec /usr/local/bin/node /home/jerome/avec_wsnode/espion_server.js 2>&1 >> $
end script


start espion_server
Comments