Questions tagged [upstart]

Upstart is an event-based replacement for the traditional init daemon used to perform tasks when the computer is started.

Upstart is an event-based replacement for the traditional init daemon used to perform tasks when the computer is started. Be sure to check out the cook book found at : http://upstart.ubuntu.com/cookbook/

545 questions
77
votes
12 answers

A better way to restart/reload Gunicorn (via Upstart) after 'git pull'ing my Django projects

Im looking for something better than sudo restart projectname every time I issue a git pull origin master, which pulls down my latest changes to a Django project. This restart command, I believe, is related to Upstart, which I use to start/top my…
Ben Keating
  • 8,206
  • 9
  • 37
  • 37
54
votes
2 answers

Is there benefit to using Monit instead of a basic Upstart setup?

I'm configuring my server to run node.js as a daemon. I've setup Upstart to handle startup and shutdown of node, which works wonderfully. The next step is to make sure that node.js is restarted if it dies. A few of the guides have suggested using…
James Gregory
  • 14,173
  • 2
  • 42
  • 60
53
votes
14 answers

How to configure Jenkins to run on port 80

I'm running Ubuntu 11.10 and have run sudo apt-get install jenkins to install Jenkins on this system. I've seen some tutorials on how to setup a reverse proxy (Apache, Nginx, etc), however this is a VM dedicated for just jenkins and I'd like keep it…
hafichuk
  • 10,351
  • 10
  • 38
  • 53
44
votes
3 answers

Daemon vs Upstart for python script

I have written a module in Python and want it to run continuously once started and need to stop it when I need to update other modules. I will likely be using monit to restart it, if module has crashed or is otherwise not running. I was going…
maaz
  • 4,371
  • 2
  • 30
  • 48
43
votes
4 answers

how to automatically restart a node server?

We are finishing development of a project, the client is already using it but occasionally some errors occur - crashing the server. I know I could register a service as 'upstart' script on linux, in order to have my node service restart when it…
transient_loop
  • 5,984
  • 15
  • 58
  • 117
34
votes
2 answers

Ubuntu, upstart, and creating a pid for monitoring

Below is a upstart script for redis. How to I create a pid so I use monit for monitoring? #!upstart description "Redis Server" env USER=redis start on startup stop on shutdown respawn exec sudo -u $USER sh -c "/usr/local/bin/redis-server…
Tampa
  • 75,446
  • 119
  • 278
  • 425
31
votes
3 answers

upstart logging output enabled

Except doing explicit logging instructions like suggested in http://upstart.ubuntu.com/wiki/Debugging, is there a way to enable output of what is happening with upstart? What event is raised What service changed its status…
samb
  • 1,713
  • 4
  • 22
  • 31
31
votes
10 answers

How to set a global nofile limit to avoid "many open files" error?

I have a websocket service. it's strage that have error:"too many open files", but i have set the system configure: /etc/security/limits.conf * soft nofile 65000 * hard nofile …
leiyonglin
  • 6,474
  • 12
  • 36
  • 41
31
votes
2 answers

why can't upstart run 'source bin/activate'?

upstart won't activate my virtualenv for some reason. This is how I run it script # My startup script, plain old shell scripting here. cd path/to/env source bin/activate .... end script the virtualenv runs fine when started…
Calum
  • 2,110
  • 2
  • 22
  • 39
30
votes
4 answers

Restarting Upstart instance processes

I am running multiple instances of a worker as described in this answer: Starting multiple upstart instances automatically Question: Can I restart all instances at once? To start my workers I can do: initctl start my-workers Which then allows me…
Ross
  • 1,934
  • 2
  • 20
  • 19
28
votes
1 answer

Starting multiple upstart instances automatically

We use PHP gearman workers to run various tasks in parallel. Everything works just fine, and I have silly little shell script to spin them up when I want them. Being a programmer (and therefore lazy), I wanted to see if I could spin these up via…
mkgrunder
  • 941
  • 1
  • 7
  • 13
28
votes
9 answers

DOCKER_OPTS do not work in config file /etc/default/docker

I have changed /etc/default/docker with DOCKER_OPTS="-H tcp://127.0.0.1:2375 -H unix:///var/run/docker.sock" (docker version 1.4.1 in ubuntu 14.04), but it do not take any effect for me (not listening at port 2375). It seems that docker do not read…
seanlook
  • 907
  • 2
  • 9
  • 13
27
votes
4 answers

Upstart env stanza not setting environment variables (like NODE_ENV) for Node.js application

I have an Upstart script for my server that looks like this: description "myapp node.js server" start on runlevel [2345] stop on shutdown env NODE_ENV=production env CUSTOM=somevalue exec sudo -u nodejs /usr/local/bin/node /opt/myapp/app.js >>…
Chris F
  • 2,886
  • 2
  • 28
  • 33
25
votes
1 answer

What is the difference between Upstart and Supervisord?

Are Upstart and Supervisord interchangeable? Do they work together? I am looking to run a python program as root when my system (debian) boots. After the boot, I would like the process manager to continue running the program if it crashes. Which…
Alexis
  • 23,545
  • 19
  • 104
  • 143
20
votes
6 answers

MongoDB - Permission denied for socket: /tmp/mongodb-27017.sock

I had an unclean shutdown of MongoDB on Ubuntu 10.04 LTS. Now when I login as root and run Mongodb via service mongodb start, I get below error- Mon Dec 12 13:53:15 [initandlisten] ERROR: listen(): bind() failed errno:13 Permission denied for…
user837208
  • 2,487
  • 7
  • 37
  • 54
1
2 3
36 37