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

Setting memory consumption limits with Upstart

I've recently become quite fond of Upstart. Previously I've been using God, Monit and Bluepill but I don't really like these solutions so I'm giving Upstart a try. I've been using the Foreman gem to generate some basic Upstart configuration files…
Michael van Rooijen
  • 6,683
  • 5
  • 37
  • 33
19
votes
1 answer

How to use foreman to export to upstart?

I am trying to export my application to another process management format/system (specifically, upstart). In doing so, I have come across a number of roadblocks, mostly due to lacking documentation. As a non-root user, I ran the following command…
user664833
  • 18,397
  • 19
  • 91
  • 140
19
votes
1 answer

Can upstart expect/respawn be used on processes that fork more than twice?

I am using upstart to start/stop/automatically restart daemons. One of the daemons forks 4 times. The upstart cookbook states that it only supports forking twice. Is there a workaround? How it fails If I try to use expect daemon or expect fork,…
johnjamesmiller
  • 720
  • 5
  • 14
15
votes
2 answers

How to write an Ubuntu Upstart job for Celery (django-celery) in a virtualenv

I really enjoy using upstart. I currently have upstart jobs to run different gunicorn instances in a number of virtualenvs. However, the 2-3 examples I found for Celery upstart scripts on the interwebs don't work for me. So, with the following…
user658587
14
votes
3 answers

UpStart initctl start|restart ubuntu

When using upstart on ubuntu how do I issue a command for starting a job if not running and restarting if already running. When deploying an app to a new node the job is not defined. initctl restart JOB complains if not already running initctl start…
Niclas
  • 1,306
  • 5
  • 15
  • 28
14
votes
2 answers

Upstart node.js working directory

Starting Node.js with Upstart, when trying to access files within Node.js it cannot access them without using the full path. I need it to use the working directory. start on startup stop on shutdown script echo $$ > /var/run/mynodeapp.pid …
Chris Evans
  • 993
  • 2
  • 13
  • 30
13
votes
1 answer

Need help running Python app as service in Ubuntu with Upstart

I have written a logging application in Python that is meant to start at boot, but I've been unable to start the app with Ubuntu's Upstart init daemon. When run from the terminal with sudo /usr/local/greeenlog/main.pyw, the application works…
GreeenGuru
  • 283
  • 2
  • 8
13
votes
4 answers

Node.js upstart vs forever

I am looking to daemonize my Node.js application. What's the difference between upstart and forever? Also, are there other packages I might want to considering looking at?
user1802143
  • 14,662
  • 17
  • 46
  • 55
13
votes
1 answer

Increase max open files for Ubuntu/Upstart (initctl)

This is on an Ubuntu 12.04.3 LTS server. I've added the following to /etc/security/limits.conf (my Golang processes run as root): * hard nofile 50000 * soft nofile 50000 root hard nofile 50000 root soft nofile …
Allison A
  • 5,575
  • 6
  • 28
  • 32
12
votes
6 answers

ubuntu: start (upstart) second instance of mongodb

the standard upstart script that comes with mongodb works fine: # Ubuntu upstart file at /etc/init/mongodb.conf limit nofile 20000 20000 kill timeout 300 # wait 300s between SIGTERM and SIGKILL. pre-start script mkdir -p /var/lib/mongodb/ …
Philipp Kyeck
  • 18,402
  • 15
  • 86
  • 123
12
votes
1 answer

Upstart: Job failed to start

EDIT status marybaked yields marybaked stop/waiting Here is the output of /var/log/syslog : May 3 16:24:39 marybakedpdx kernel: [ 3464.189563] init: Failed to spawn marybakedpdx main process: unable to find setuid user May 3 16:24:44…
redress
  • 1,399
  • 4
  • 20
  • 34
12
votes
1 answer

initctl too old upstart check

I am trying to do a syntax check on an upstart script using init-checkconf. However when I run it, it returns ERROR: version of /sbin/initctl too old. I have no idea what to do, I have tried reinstalling upstart but nothing changes. This is being…
0C3D
  • 348
  • 3
  • 11
12
votes
5 answers

How can I get an upstart script to properly manage running a docker image?

I have a local docker-registry that I'd like to manage with upstart. I have the following script (in /etc/init/docker-registry.conf): description "docker registry" author "me" start on filesystem and started docker stop on runlevel [!2345]…
Gerrat
  • 28,863
  • 9
  • 73
  • 101
11
votes
1 answer

Running bash script in upstart .conf script

I would like run my bash script (kvm_manage) in startup, and it doesnt work. Here is my upstart .conf script: description "kvm start skript" start on local-filesystem stop on shutdown respawn script exec…
Joffo
  • 175
  • 1
  • 1
  • 9
11
votes
2 answers

Upstart script for node.js app

I'm having trouble starting an Upstart script. Here's the script (app.conf in /etc/init/) description "node.js server" author "kvz" start on startup stop on shutdown script # We found $HOME is needed. Without it, we ran into problems …
Ivan Bravo Carlos
  • 1,650
  • 3
  • 15
  • 22
1
2
3
36 37