Created
March 22, 2013 07:31
-
-
Save tfanme/5219587 to your computer and use it in GitHub Desktop.
Use Crontab command to start forever for Node.js on bootstarp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /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