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
3
votes
0 answers

Nginx pid keeps changing every few second after killing the master process

I'm using the following Upstart script to keep Nginx up and running on Ubuntu server: start on (filesystem and net-device-up IFACE=lo) stop on runlevel [!2345] env DAEMON=/usr/sbin/nginx env CONF=/etc/nginx/nginx.conf respawn respawn limit 10…
perak
  • 1,310
  • 5
  • 20
  • 31
3
votes
2 answers

Upstart and init.d priority

I use foreman to run my node.js applications on the production servers (ubuntu server 12). Foreman has a great tool to create scripts for upstart. The problem is that when I reboot a server, my application (managed by foreman) is launched before…
G33k Labs
  • 340
  • 1
  • 2
  • 9
3
votes
2 answers

Rails/Unicorn deploy: what creating the Unix socket?

I am deploying a Rails 2.3 // Spree app with Capistrano/Unicorn/Foreman/Upstart. The part that I cannot figure out is how to have the /myapp/shared/sockets/unicorn.sock be automatically created by the foreman/upstart process management (at least…
westonplatter
  • 1,475
  • 2
  • 19
  • 30
3
votes
1 answer

config file for upstart with nodejs

Can you advise a upstart config file for nodejs on ubuntu? I've found the follows tutorial: http://howtonode.org/deploying-node-upstart-monit but it seem very old.
Erik
  • 14,060
  • 49
  • 132
  • 218
3
votes
2 answers

How do I stop all instances of an upstart job

I have the following upstart job which takes arguments to run multiple instances of the same job: instance $ARG1,$ARG2 script exec /path/to/executable "$ARG1" "ARG2" end script Now if I start two instances of my job like this: $ start my-job…
ErJab
  • 6,056
  • 10
  • 42
  • 54
3
votes
1 answer

Cannot make a cronjob get the status of a service

I'm using Upstart to run a couple of services when the systems reboots. Those services should always be running. I have noticed that some of then crashed eventually, so I'm trying (without success) to create a watchdog script. This script will…
kitimenpolku
  • 2,604
  • 4
  • 36
  • 51
3
votes
1 answer

Upstart job (haproxy)

I am starting HA proxy using the following command: sudo etc/init.d/haproxy start and I stop HA proxy using: sudo etc/init.d/haproxy stop How can I write a basic upstart script for sudo etc/init.d/something start or stop ?
Vladimir
  • 335
  • 1
  • 7
  • 24
3
votes
2 answers

Running Python script as upstart service shows different time output

I have a python script that is essentially a small socket server that does some simple network tasks for me, and I started running it as an upstart service to keep track of it and manage whether or not it was running. To log information, I am using…
Annath
  • 1,262
  • 10
  • 20
2
votes
4 answers

Getting Django in a VirtualEnv to run through Upstart

I've been trying to trudge through the docs and examples to get my Django running through upstart so I can have it running all the time but am unable to so. Here's my upstart configuration file located at /etc/init/myapp.conf: start on…
Mridang Agarwalla
  • 43,201
  • 71
  • 221
  • 382
2
votes
0 answers

Trying to get upstart to start and stop a nginx spawn-fcgi proccess

I am using spawn-fcgi to spawn a python app. If I run below it works. spawn-fcgi -d /home/ubuntu/workspace/rtbopsConfig/rtbPixelServer/ -f /home/ubuntu/workspace/rtbopsConfig/rtbPixelServer/index.py -a 127.0.0.1 -p 9001 Now I want to create a…
Tampa
  • 75,446
  • 119
  • 278
  • 425
2
votes
0 answers

Unicorn and upstart

I'm having a hard time writing an upstart configuration file to start (and keep alive) the unicorn web server on a Ubuntu box. How should I set the respawn and expect parameters? With respawn enabled the process is continously restarted (I see on…
paozac
  • 223
  • 2
  • 7
2
votes
1 answer

node.js main process killed by ABRT signal, but not caught by process.on("SIGABRT",...)

I'm using upstart to launch a daemon to run a node.js (using express and connect-redis) http and https server (in the same node .js file) per http://kevin.vanzonneveld.net/techblog/article/run_nodejs_as_a_service_on_ubuntu_karmic/ Everything is…
Ray
  • 360
  • 3
  • 8
2
votes
3 answers

Ubuntu 8.04 Hardy and node.js upstart script

I am trying to write an upstart script for my ubuntu machine, which is version 8.04 "Hardy". I have followed the instructions on this site: upstart for node.js but it seems like these instructions are for a current version of ubuntu. I noticed…
Ian Herbert
  • 1,071
  • 2
  • 16
  • 35
2
votes
1 answer

Considerations for building SysV or Upstart compatible Bash scripts

I've just knocked out a quick script for keeping a slave web server in sync with a master using rsync. (https://github.com/simonjgreen/liveFolderSync/blob/master/liveFolderSync.sh) I'd like to make this run on boot and be controllable via the usual…
SimonJGreen
  • 273
  • 1
  • 19
2
votes
3 answers

flush output in Bourne Shell

I use echo in Upstart scripts to log things: script echo "main: some data" >> log end script post-start script echo "post-start: another data" >> log end script Now these two run in parallel, so in the logs I often see: main: post-start:…
n-alexander
  • 14,663
  • 12
  • 42
  • 43