Created
October 8, 2014 20:45
-
-
Save Voronchuk/7e79d325bb99bc2f3e66 to your computer and use it in GitHub Desktop.
Startup script for bundled Meteor.js application
This file contains 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
description "Meteor.js (NodeJS) application" | |
author "Viacheslav Voronchuk <[email protected]>" | |
# When to start the service | |
start on started mongodb and runlevel [2345] | |
# When to stop the service | |
stop on shutdown | |
# Automatically restart process if crashed (we use forever for that) | |
# respawn | |
# respawn limit 10 5 | |
# we don't use buil-in log because we use a script below | |
# console log | |
# drop root proviliges and switch to mymetorapp user | |
setuid web | |
setgid web | |
script | |
bash /home/web/starbuildr/start.sh | |
end script |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment