Node.js
- 1 ответ
- 0 вопросов
2
Вклад в тег
node expamle.js &
apt-get install upstart // yum here for Centos
------
#!upstart
description "my app"
start on started mountall
stop on shutdown
# Automatically Respawn:
respawn
respawn limit 99 5
env NODE_ENV=production
exec node /somepath/myapp/app.js >> /var/log/myapp.log 2>&1
----
sudo start myapp
sudo stop myapp
sudo restart myapp
$npm install forever -g
$forever start app.js
cat 2.txt | while read line ; do if ! grep -q $line 1.txt; then echo $line; fi ; done