Jump to content

VPS spustenie js po starte


BlueSk

Recommended Posts

potrebujem spustit node (js) po starte no a ja som to doteraz robil ze som vytvoril v /etc/init napr vec.conf a spustilo to ale mne to spustilo iba samotne node a ja by som potreboval aby to spustilo v screene aby som to mohol hocikedy ovládať. skúšal som exec screen node /cesta/cesta.js ale nič ide iba node bez screenu dám sem aj code čo mám v .conf

description "node.js server"
author      "kvz - http://kevin.vanzonneveld.net"

# used to be: start on startup
# until we found some mounts weren't ready yet while booting:
start on started mountall
stop on shutdown

# Automatically Respawn:
respawn
respawn limit 99 5

script
    # Not sure why $HOME is needed, but we found that it is:
    export HOME="/root"

    exec node /var/www/bot/sell.js >> /var/log/node.log 2>&1
end script

post-start script
   # Optionally put a script here that will notifiy you node has (re)started
   # /root/bin/hoptoad.sh "node.js has started!"
end script
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...