Skip to content

Instantly share code, notes, and snippets.

@tfanme
Created March 22, 2013 07:31
Show Gist options
  • Select an option

  • Save tfanme/5219587 to your computer and use it in GitHub Desktop.

Select an option

Save tfanme/5219587 to your computer and use it in GitHub Desktop.
Use Crontab command to start forever for Node.js on bootstarp
/usr/bin/mongod
# which forever
/usr/local/bin/forever
# which python
/usr/local/bin/python
# which python2
/usr/local/bin/python2
# which python3
/usr/local/bin/python3
# which httpd
/usr/sbin/httpd
# which mongo
/usr/bin/mongo
# crontab -u root -e
no crontab for root - using an empty one
crontab: installing new crontab
# contab -u root -l
-bash: contab: command not found
# crontab -u root -l
@reboot /usr/local/bin/forever start /srv/www/sm/receivesms.js
@reboot /usr/local/bin/forever start /srv/www/sm/translate_server/server.js
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment