Skip to content

Instantly share code, notes, and snippets.

@Voronchuk
Created October 8, 2014 20:45
Show Gist options
  • Save Voronchuk/7e79d325bb99bc2f3e66 to your computer and use it in GitHub Desktop.
Save Voronchuk/7e79d325bb99bc2f3e66 to your computer and use it in GitHub Desktop.
Startup script for bundled Meteor.js application
description "Meteor.js (NodeJS) application"
author "Viacheslav Voronchuk <voronchuk@starbuildr.com>"
# 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