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!
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.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.