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

Timestamps in upstart logs

I'm using upstart on Ubuntu to manage services. It writes to /var/log/upstart/.log. Errors in this file don't have timestamps, which makes it difficult to diagnose problems. Is there a way -- a stanza of some kind in the config file --…
blueimpb
  • 377
  • 3
  • 11
8
votes
7 answers

How to keep node app running?

I've finally finished converting one of my projects to use Node.JS, but now I'm having problems keeping my app running on the server :/ The problem is that if I close my putty session Node just stops. I've done a lot of searching on this problem,…
Joel Murphy
  • 2,472
  • 3
  • 29
  • 47
7
votes
3 answers

Using ubuntu upstart to stop a daemon

I am using upstart to create a daemon for a spawned nginx python fastcgi script. If I use the below it works: sudo start myserver What does not work is: sudo stop myserver stop: Unknown instance: Below is my conf file with the command for…
Tampa
  • 75,446
  • 119
  • 278
  • 425
7
votes
5 answers

Upstart init is leaking memory, how do you debug it?

I've got a memory leak in Upstart init process (pid 1), what options I have on debugging it? EDIT: Suggest me some real tools for this, manually putting printfs or calculating memory allocations by hand isn't gonna cut it. Also dumping init core and…
Tuminoid
  • 9,445
  • 7
  • 36
  • 51
7
votes
2 answers

start-stop-daemon error (Exec format error)

This command is part of an upstart script, which used to work in ubuntu 12.04, 10.04. sudo start-stop-daemon --start --make-pidfile --pidfile /var/run/mk_order_handler.pid --chuid ubuntu --exec /data2/src/jeapps/sites/crons_index.php…
robert
  • 8,459
  • 9
  • 45
  • 70
7
votes
1 answer

managing uWSGI with Upstart

I am trying to configure uWSGI with Upstart. I created the file /etc/init/uwsgi-flask.conf: description "uwsgi for flask" start on runlevel [2345] stop on runlevel [06] exec /appdir/virtualenvdir/bin/uwsgi /appdir/virtualenvdir/uwsgi.ini…
Daniele B
  • 19,801
  • 29
  • 115
  • 173
7
votes
3 answers

running node.js server using upstart causes 'terminated with status 127' on 'ubuntu 10.04'

i have written an upstart script for ubuntu to launch my node.js server manually or on startup. But it always terminates with status 127 and i can't find more information about what is going wrong. If i execute it manually then it works and i also…
Daan Poron
  • 2,708
  • 5
  • 29
  • 33
6
votes
1 answer

How to combine process and file check in monit?

Summary How can I combine multiple checks in Monit? I want to check against process activity and file content/timestamp. Long and boring explanation I'm working on a Monit daemon for keeping my Bukkit Minecraft server up. It does several checks. At…
buschtoens
  • 8,091
  • 9
  • 42
  • 60
6
votes
1 answer

Foreman not working with NGINX

I'm trying to use Foreman (version 0.31.0) to manage our application's processes but I'm not having much luck with nginx (nginx/1.0.10 + Phusion Passenger 3.0.11). Here's the relevant line from my Procfile: nginx: sudo…
Kyle Fox
  • 3,133
  • 4
  • 23
  • 26
6
votes
1 answer

How to debug an upstart script that intermittently fails?

I have a process that I want to start as soon my system is rebooted by whatever means so I was using upstart script for that but sometimes what I am noticing is my process doesn't get started up during hard reboot (plugging off and starting the…
john
  • 11,311
  • 40
  • 131
  • 251
6
votes
2 answers

sudo service mongod start : mongod: unrecognized service

I'm testing learning locker which is based on MongoDB it's all inside a ubuntu14.04 docker https://hub.docker.com/r/hadyrashwan/learninglocker-ubuntu14.04/ . I got it to work but I can't start Mongodb automatically tried the repair command and…
Hady Rashwan
  • 356
  • 1
  • 6
  • 21
6
votes
1 answer

Upstart console output not working

I used Upstart's provided example for console output. /etc/init/test.conf console output pre-start script # Perform whatever checks you like here (maybe checking # '/etc/default/foo' to see if the service is enabled # or not). # # if there…
Paul Draper
  • 78,542
  • 46
  • 206
  • 285
6
votes
2 answers

Can I import a Golang package based on the OS I'm building for?

Say I have a go project that based on which OS, and in some cases which distro, I want to use say a Systemd client package vs an Upstart client package vs a sysv client package vs a launchd client package. Is it possible to selectively import each…
Christian Grabowski
  • 2,782
  • 3
  • 32
  • 57
6
votes
1 answer

Puma restart fails on reboot using EC2 + Rails + Nginx + Capistrano

I have successfully used capistrano to deploy my rails app to Ubuntu EC2. Everything works great on deploy. Rails app name is deseov12 My issue is that Puma does not start on boot which will be necessary as production EC2 instances will be…
6
votes
2 answers

Starting uWSGI service fails silently

I'm having a problem which is driving me nuts. I'm trying to create an Ubuntu 15.04 Upstart job, which would start uWSGI server (uWSGI version 2.0.7-debian) running a Django application. I've configured the service as a follows and try to start the…
samuke
  • 450
  • 1
  • 5
  • 15