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
2
votes
1 answer

Writing startup script for Ubuntu

Note: I did consider putting this question on the AskUbuntu site, but believe it is a scripting/programming question at its core, and thus deserves to be here on SO. I'm trying to use upstart to run a script every time I turn my Ubuntu desktop on.…
user1768830
2
votes
1 answer

How to respawn PHP script using upstart?

I have an Ubuntu 12.04 installation and a PHP script I want to re-run as soon as it terminates. I'm using upstart and this myscript.conf in /etc/init/: start on startup stop on shutdown exec php5 /var/myscript.php respawn I can run my script…
Max Min
  • 121
  • 3
2
votes
0 answers

upstart compile issue

i am trying to compile upstart for my server and i am able to ./configure but just after that, make shoots back this error make: *** No targets specified and no makefile found. Stop. I looked around and some people alluded to there not actually…
rodenbushdesign
  • 81
  • 1
  • 11
2
votes
0 answers

Python Setuptools/setup.py Install Upstart Configuration

Is there an elegant way to have setuptools deposit and install an Upstart configuration, or should I just do it from a custom pre-hook (cmdclass)? Can Setuptools be used to install files in arbitrary locations, in general? Thank you. Dustin
Dustin Oprea
  • 9,673
  • 13
  • 65
  • 105
2
votes
1 answer

Using NVM to start Node in an Upstart Job

I am trying to start my Node server inside an ubuntu upstart process. I really want to use my NVM environment. But I just can't seem to get it going. Does anyone have a code snippet of an upstart job that launches their node application within a…
Barry Steyn
  • 1,563
  • 3
  • 19
  • 25
2
votes
1 answer

How to pipe stderr into stdin?

Possible Duplicate: pipe stdout and stderr to two different processes in shell script? I have a program which writes to stdout and stderr, I want to pipe the stdout into the stdin of the logger command and pipe the stderr into the stdin of…
Remy
  • 334
  • 1
  • 4
  • 15
2
votes
2 answers

Upstart script for nodejs daemon in CentOS doesn't work (crashes on start)

I have the following in a .conf file in the /etc/init/ directory of my CentOS server: #!upstart description "shortnr server for fmc.io" author "Felix Milea-Ciobanu" start on startup stop on shutdown respawn respawn limit 10 30 script …
Felix Mc
  • 503
  • 1
  • 5
  • 16
2
votes
2 answers

upstart start job with delay after another job was started and is running

I'm trying to use upstart for the first time. I have two java programs that i want to start. The first one is a solr search server running on jetty, and the second one is a custom crawler that should start after the solr server started. my crawler…
samy
  • 1,396
  • 2
  • 19
  • 41
2
votes
1 answer

python script as a service on Ubuntu

I am facing the following problem. I want to run a python script as a service on Ubuntu 11.10 system (already mentioned in the following link: Python script as linux service/daemon) I followed the steps mentioned in the above mentioned link, but i…
bugs99
  • 31
  • 1
  • 4
2
votes
2 answers

How can I detect if my upstart script is running?

In pseudo code I'm trying to do something like the following if myService is running restart myService else start myService How can I translate the above into a bash script or similar?
Hoa
  • 19,858
  • 28
  • 78
  • 107
2
votes
0 answers

Listening all upstart jobs and events by python

I want to listen all Upstart jobs/events on a Linux host (Amazon EC2 Linux AMI) by Python, in order to bridge all jobs/events to a RabbitMQ server, so that a worker host can record it and do something at some jobs/events. The version of Upstart is…
takaomag
  • 1,545
  • 1
  • 16
  • 26
1
vote
2 answers

Running a node.js app with upstart and Procfile

I have a node.js application. I have written a Procfile with the following contents. subscription-engine-processor: node index.js Not sure whether i am doing it right, but i tried running it with the ruby gem foreman. $ foreman start nothing…
Sunil
  • 3,424
  • 2
  • 24
  • 25
1
vote
1 answer

Passing an environment variable when fetching a dbus object instance through python

I am using python to determine the status of an upstart job on Ubuntu. I've recently changed the upstart job so that it has an Instance stanza as such: instance $some_var. As expected, my code no longer works. If I try: path =…
rod
  • 3,403
  • 4
  • 19
  • 25
1
vote
1 answer

Process logging binary data to log file

I'm starting a node process with the following upstart script, logging stdout & stderr into separate files: script sudo -u node /usr/local/bin/node /var/node/services/someServer.js 1> /var/log/node/someServer.log 2>…
Gerhard
  • 107
  • 2
  • 8
1
vote
2 answers

Tornadoweb webapp cannot be managed via upstart

Few days ago I found out that my webapp wrote ontop of the tornadoweb framework doesn't stop or restart via upstart. Upstart just hangs and doesn't do anything. I investigated the issue and found that upstart recieves wrong PID, so it can only run…
Gregory Sitnin
  • 693
  • 7
  • 10