By janemchu
I am on Ubuntu 14.04 and I have an upstart file angular-meteor.conf with the following:
# upstart service file at /etc/init/angular-meteor.conf
description "Meteor.js (NodeJS) application"
# When to start the service
start on runlevel [2345]
# When to stop the service
stop on shutdown
# Automatically restart process if crashed
respawn
# Let upstart know the process will detach itself to the background
expect fork
# start meteor
exec meteor
This is not working, I have tried a few variations eg. http://stackoverflow.com/questions/15657071/how-to-run-meteor-on-startup-on-ubuntu-server
Anyone know why it wouldn’t be working? I know that it is starting at least.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
This comment has been deleted
Add the following lines to your upstart script:
setuid user to run as
setgid group to run as, usually the same as the user
chdir /path/to/meteor_app
Then try starting it. Does that work? If not, take a look at the log file and see if there are any errors:
sudo tail /var/log/upstart/angular-meteor.log
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.
