BlueSk 3 Odesláno: 29. Leden, 2016 Share Odesláno: 29. Leden, 2016 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 More sharing options...
DragoCZ 8 Odesláno: 29. Leden, 2016 Share Odesláno: 29. Leden, 2016 nano /etc/rc.d/rc.local Hod script sem. Link to comment Share on other sites More sharing options...
BlueSk 3 Odesláno: 29. Leden, 2016 Author Share Odesláno: 29. Leden, 2016 ja tam mam rc0.d rc1.d rc2.d rc3.d rc4.d atd.. Link to comment Share on other sites More sharing options...
DragoCZ 8 Odesláno: 29. Leden, 2016 Share Odesláno: 29. Leden, 2016 Nenapsal jsi, co pouzivas za system, vychazel jsem z centosu. Link to comment Share on other sites More sharing options...
BlueSk 3 Odesláno: 29. Leden, 2016 Author Share Odesláno: 29. Leden, 2016 Ubuntu 14.04 Link to comment Share on other sites More sharing options...
Recommended Posts