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
6
votes
2 answers

How to prevent upstart from killing child processes to a daemon?

Situation I have a daemon I wrote in PHP (not the best language for this, but work with me), and it is made to receive jobs from a queue and process them whenever a job needs to be done. For each new job, I use pcntl_fork() to fork the job off into…
Michael Brook
  • 380
  • 5
  • 10
6
votes
1 answer

how to daemonize a php script to be run with upstart

I have a PHP script that has been running as a cron job. The script uses the DB to see if it has anything to do, and to make sure its brethren are not already running. I'd like to run the PHP script as a daemon with upstart. I've set up my…
Thunder Rabbit
  • 5,405
  • 8
  • 44
  • 82
5
votes
3 answers

Cannot get my Upstart script to run Node.js and Forever when server restarts

I've been setting up my server recently and today I had to restart it... then I realised all of my Node apps I had running weren't running anymore. I'm using Node Forever module to keep the apps running, but then I realised I still need to have them…
littlejim84
  • 9,071
  • 15
  • 54
  • 77
5
votes
1 answer

Where do I put non-Ruby files in my gem?

I want to put an Upstart config file in my Ruby gem. Here's my current best guess Gem::Specification.new do |s| # ... s.files = %w( lib/rt_watchdog.rb lib/upstart/rt_watchdog.conf bin/rt_watchdog ) end In general, where do…
Justin Force
  • 6,203
  • 5
  • 29
  • 39
5
votes
2 answers

Running Redis in daemonized form and using Upstart to manage it doesn't work

I've written an Upstart script for Redis as follows: description "Redis Server" start on runlevel [2345] stop on shutdown expect daemon exec sudo -u redis /usr/local/bin/redis-server /etc/redis/redis.conf respawn respawn limit 10 5 I then…
Chris F
  • 2,886
  • 2
  • 28
  • 33
5
votes
1 answer

ubuntu upstart not respawning the daemon despite respawn in the config file

I have problems with my deamon restart. upstart is not spawning the daemon when the daemon crashes. here is my upstart init file . pls advise. description "bezkon watch dog" start on runlevel [2345] stop on runlevel [!2345] respawn expect…
Ravikumar Tulugu
  • 1,702
  • 2
  • 18
  • 40
5
votes
0 answers

Why isn't node.js able to trap SIGTERM from an upstart script?

When I stop an upstart job, by default it uses SIGTERM. I have trapped SIGTERM in node.js like: process.on('SIGTERM', shutdownServerGracefully); process.on('SIGINT', shutdownServerGracefully); I verified that this works by running it from…
thesmart
  • 2,993
  • 2
  • 31
  • 34
5
votes
1 answer

CWD of an Node.js application started with upstart (Ubuntu)

I've coded an node.js app that when get executed need to return CWD from process to be able to read files on disk. When I start the app directly with node in the actual app directory... #!sh node app.js everything is working fine and…
plehoux
  • 795
  • 2
  • 8
  • 21
5
votes
1 answer

Node: 100s of simultaneous requests slows down server substantially. O.S issue?

My node application is making requests to two Servers, A and B. To server A, it waits for one request to finish before making the next one. To server B it makes 20 requests a second without waiting. When I'm making the requests to Server B, the…
user1585789
  • 648
  • 6
  • 14
5
votes
3 answers

Did upstart or bash scripts change on Ubuntu 14.04? (Trying to boot sidekiq with upstart)

I'm fairly new to bash scripting, but it feel like I'm really missing something basic here. I'm trying to a barely modified version of Mike Perham's upstart sidekiq script on an Ubuntu 14.04 machine, yet almost nothing is being evaluated as…
Josh
  • 655
  • 5
  • 17
5
votes
1 answer

cross domain configuration issues using nginx, sails and upstart

I'm having cross domain configuration issues using nginx and sails. The problem is that if I get the socket to connect properly via http://domain-server.com/socket.io/ then the RESTful request will fail. If RESTful works the socket will…
GillesC
  • 10,647
  • 3
  • 40
  • 55
5
votes
3 answers

Upstart task generated by foreman doesn't find file?

I used foreman to export my Procfile to an upstart task. Procfile: web: bundle exec rails server websocket: bundle exec rails runner websocket-server/em_websocket.rb One of the upstart tasks (they are very alike and fail with the same error): start…
Gregor Weber
  • 690
  • 9
  • 24
5
votes
6 answers

Foreman rvm upstart not work

Unicorn not runs by upstart script. rvm 1.25.23 ruby 2.1.1 Rails 4.1 config/deploy.rb desc 'Foreman init' task :foreman_init do on roles(:all) do foreman_temp = "/home/deployer/tmp/foreman" execute "mkdir -p #{foreman_temp}" …
Denis
  • 222
  • 3
  • 10
5
votes
1 answer

Upstart tracking wrong PID of Bluepill

I have bluepill setup to monitor my delayed_job processes. Using Ubuntu 12.04. I am starting and monitoring the bluepill service itself using Ubuntu's upstart. My upstart config is below (/etc/init/bluepill.conf). description "Start up the bluepill…
Anjan
  • 1,613
  • 1
  • 19
  • 25
5
votes
2 answers

python script to .deb ubuntu package to install a daemon

I have a python script which runs a daemon-like service, now I created the python package. I created a .deb package from there but I want the script to be run with upstart, but I can't mange to write the files in the /etc/init ubuntu folder…
Anze
  • 707
  • 9
  • 15