Upstart is an event-based replacement for the /sbin/init daemon which handles starting of tasks and services during boot, stopping them during shutdown and supervising them while the system is running.

learn more… | top users | synonyms

20
votes
2answers
2k views

Can upstart handle symbolic links to config files?

I have all of my upstart config files under version control. My ideal way to use upstart is to create soft links from my version control repository (mercurial - not that it matters) into /etc/init but ...
13
votes
4answers
13k views

upstart scripts: run a task after networking goes up

I'm working on moving my current server setup to newer hardware, and migrating from ubuntu karmic koala to lucid lynx. Currently i'm using gw6c (compiled from the gogo6 website, as opposed to the ...
12
votes
4answers
6k views

Logging a Daemon's Output with Upstart

I have a custom daemon that is managed by upstart on my Ubuntu server. It works perfectly except that I need to capture (log) the daemon's output. The official stanzas page says that I can use console ...
10
votes
2answers
10k views

CentOS 6 and upstart

The new CentOS 6 comes with Upstart, replacing init. I am trying to convert an /etc/inittab file to the new upstart format. This particular server only has 15 or so inittab entries, however, other ...
9
votes
3answers
7k views

Is there a “standard” way to make daemon in Debian?

I need to create a daemon from the application in Debian. Is there any standard tool for this in Debian like "upstart" in Ubuntu? I need only start-stop commands, to start a program as a daemon with ...
8
votes
7answers
10k views

How can I start nginx via upstart?

Background: DISTRIB_ID=Ubuntu DISTRIB_RELEASE=10.04 DISTRIB_CODENAME=lucid DISTRIB_DESCRIPTION="Ubuntu 10.04 LTS" I've built nginx, and I'd like to use upstart to start it: nginx upstart script ...
6
votes
5answers
7k views

RHEL 6: View boot messages “behind” the splash screen

I know there was a way to do the above in Fedora. I cannot for the life of me remember what the key was; nor can I find documentation via a web search.
6
votes
1answer
2k views

Upstart: allowing a normal user to stop and start my custom service

I have got my webserver application starting on boot using upstart. This is the upstart script: # web app node upstart file at /etc/init/webapp.conf description "web application" start on started ...
6
votes
2answers
2k views

How to define different stop/restart signals with upstart

I am starting to convert all of our systems to using upstart to manage our various application processes. One thing that I am constantly missing is the ability to send a different signal to the ...
6
votes
2answers
2k views

Have upstart read environment from /etc/environment for a service

What is the best way to provide the environment variables defined in /etc/environment to an upstart service? I think simply sourcing them with . in a script section does not work, because the ...
6
votes
3answers
281 views

How to make upstart back off, rather than give up

I want Upstart to do two things: stop trying to respawn a failed process so fast never give up trying to respawn In an ideal world, upstart would try to restart a dead process after 1s, then ...
5
votes
1answer
1k views

Upstart vs Supervisord to manage WSGI processes

Thoughts? I'm running Ubuntu 10.0.4
5
votes
1answer
2k views

What signal does upstart/initctl use to restart a job?

What signal will upstart/initctl use to restart a job? Furthermore, is there any way to specify that SIGHUP should be used? Alternately, is there a way to define a custom reload command that will ...
5
votes
1answer
3k views

Using Upstart to Manage AutoSSH Reverse Tunnel

I'm using upstart to manage a reverse SSH tunnel via autossh. When I do a "sudo start tunnel" the connection comes up just fine; however the command is not being automatically run when the networking ...
5
votes
1answer
4k views

upstart does not see my job

in Ubuntu 12.10 user@xyz:~$ sudo initctl --version initctl (upstart 1.5) Copyright (C) 2012 Scott James Remnant, Canonical Ltd. This is free software; see the source for copying conditions. There ...
5
votes
2answers
3k views

Ubuntu Upstart script hangs on start and stop

I have an upstart script that will start a custom jetty server. When I do sudo start [myservice] nothing happens. Subsequently, sudo status [myservice] show it as: [myservice] start/killed, process ...
4
votes
3answers
3k views

Using Upstart to manage Unicorn w/ rbenv + bundler binstubs w/ ruby-local-exec shebang

Alright, this is melting my brain. It might have something to do with the fact that I don't understand Upstart as well as I should. Sorry in advance for the long question. I'm trying to use Upstart ...
4
votes
2answers
2k views

Ubuntu Upstart Error

I'm running Ubuntu 10.04 LTS and attempting to run services via start,stop, status and I get the corresponding error below. I've googled around but everything is like 2-3 years old and unanswered. ...
4
votes
2answers
1k views

Upstart : start service after non-upstart process

On Ubuntu 10.04, I need to start my service with upstart, but only when mysql is up and running. The problem is that mysql itself is not handled by upstart, so I can't use the "start on" feature. ...
4
votes
2answers
3k views

Running Upstart user jobs on startup

I am running Ubuntu server 11.04. I have created an Upstart user job as described here. I have the following file at my /home/myuser/.init/sensors.conf: start on started mysql stop on stopping mysql ...
4
votes
1answer
2k views

sleep in upstart script (upstart synchronism)

I've written this code to automatically start KVM Virtual Machine at boot of host system, and stop Virtual Machine at shutdown or reboot of host system. start on startup start on started networking ...
4
votes
1answer
1k views

Equivalent for the “pid file” stanza in newer versions of upstart

I'd like to be able to use upstart to manage daemons where I don't have complete control over the forking behaviour. The "pid" stanza is removed as of version 0.3.9, so I can't point it at a pid file. ...
4
votes
3answers
640 views

chkconfig equivalent for upstart jobs on CentOS6

On RHEL6/CentOS6 what is the upstart way to: chkconfig add my-svc chkconfig my-svc on Explanation: I have written an /etc/init/xvc0.conf job. I can do start xvc0 on the CLI, but after reboot ...
3
votes
1answer
1k views

Upstart: stop on runlevel [016] vs stop on starting rc RUNLEVEL=[016]

So, I'm working on an upstart init script for mysql. Should be trivial, right? My stop stanza looks like: kill timeout 30 stop on runlevel [016] I shutdown now -r, and mysql yells about my MyISAM ...
3
votes
2answers
265 views

Spawning multiple instances of a daemon in Ubuntu

I have a python script that listens and blocks while it waits for data on a redis list. It runs fine in upstart using the following: description "stage message consumer" author "Nilesh Ashra" start ...
3
votes
2answers
364 views

Debain no longer booting after apt-get remove upstart

I can no longer boot my server up. I get the following issue: Loading, please wait... Target filesystem doesn't have requested /sbin/init. /bin/sh: can't access tty; job control turned off # _ and ...
3
votes
3answers
2k views

upstart not working

I saved the following file at /etc/init/nodejs.conf description "node.js server" author "dorelal" start on startup stop on shutdown script # We found $HOME is needed. Without it, we ran ...
3
votes
1answer
207 views

Why is upstart eating all of my RAM?

I'm running Ubuntu Server 12.04 LTS in EC2. I have several node.js daemons running as services under upstart, along with the usual init stuff. After every deploy, during which all the node.js daemons ...
3
votes
2answers
133 views

Is it possible to set an Upstart service to stop $LAST

I'm wanting the rsyslog service to run until the last moment to ensure we receive as much logging as possible on our central logging servers. On Ubuntu 11.04, rsyslog's stop line is set to "stop on ...
3
votes
2answers
2k views

Fedora14 serial console how-to needed

Has anyone ever got a serial console working in fedora 14 ? Is it as simple as adding to grub: serial --unit=0 --speed=38400 terminal --timeout=10 serial console and add to the kernel lines: ...
3
votes
2answers
167 views

Why can't I run this python script as a job in ubuntu 12.04?

Normally I do this: cd /home/ubuntu/project/beta python default.py -dev In order to start the web.py server I would prefer to do this: sudo start beta Here is my /etc/init/beta.conf setuid ...
3
votes
0answers
172 views

Monit will not start my node js app

I have a problem with Monit that I use for monitoring of my Node.js app. I just moved from a single core machine to a multi core one. On both of them I run Ubuntu 11.10. On the old one this was ...
3
votes
1answer
617 views

Writing an upstart config file for Unicorn

I've had a good hunt and can't find a good example of an upstart script for Unicorn. From what I've read however I think that upstart and unicorn might step on each others toes if I just try to set ...
2
votes
3answers
2k views

Comprehensive guide to init.d scripts?

I'm looking for good resources to learn more about how to write/debug/maintain init.d scripts on Ubuntu. Do you have any links or books to recommend ?
2
votes
3answers
2k views

How to start a rake task using upstart

I'm trying to setup a Resque worker as an Upstart init script to be used by Monit in a Rails app. I'm not a sysop and I've tried to write this using examples from other init script we have on our ...
2
votes
2answers
1k views

cant get upstart script for node.js program to start on startup

I made a rather simple startup script for my node.js program that should run on startup: start on startup stop on shutdown script exec sudo -u max WEBSITES_DIR=/home/max/websites/ ...
2
votes
3answers
1k views

Ubuntu Server: Running processes at boot time

How do I make Ubuntu Servers run services at boot time, in a specific order? I have read a bit about Upstart, init.d and inittab, and I'm not sure what's the right approach for doing it. Thanks, ...
2
votes
1answer
299 views

How to run “mongodb --repair” if it's an Upstart job?

My MongoDB server died. The log says something about an unclean shutdown and an existing mongodb.lock file. It recommends to remove the lock file, then restart the mongodb server with --repair. ...
2
votes
1answer
531 views

How to install init-checkconf for upstart?

Upstart is installed, but init-checkconf is not. Any ideas how to get both? $ sudo init-checkconf sudo: init-checkconf: command not found $ sudo dpkg --get-selections | grep upstart upstart ...
2
votes
1answer
1k views

Upstart does not work

I followed this tutorial to set up upstart for my node.js server: http://howtonode.org/deploying-node-upstart-monit The problem is, that when I try to run "start mynodeprogram", I get the floowing ...
2
votes
2answers
155 views

What functionality do I lose by disabling GDM/KDM/SLIM/CDM etc display managers?

so... I've been wondering lately why do I need GDM. I got it disabled for experiment sake through modifying upstart file /etc/init/gdm (I run Ubuntu 10.10 desktop). So now computer boots to command ...
2
votes
1answer
260 views

Mysql with upstart not starting

After an update this morning we are having some strange problems. First of all apt-get upgrade fails during the configuration with the a message that it was unable to start the service. We then ...
2
votes
3answers
1k views

Upstart Job as Unprivileged user fails with permission denied

I'm trying to set up a Sage Cell Server (an open source mathematical engine) running as an unprivileged user. I've created the unprivileged user sagecell to do the job. It is installed correctly and, ...
2
votes
2answers
213 views

Nginx and NSD3 don't start on boot because they cannot use the assigned IP

Server is a Xen VPS running Ubuntu 12.04 and neither nginx nor NSD3 come up after reboot. The apparent reason for that is that they're not able to bind to their assigned IP addresses right after boot, ...
2
votes
1answer
274 views

RHEL 6 Upstart User Jobs

Does RHEL6 support upstart user jobs? I modified /etc/dbus-1/system.d/Upstart.conf and added a policy section for my username. I then created ~/init.d/userjob.conf. When I do inictrl list it ...
2
votes
1answer
2k views

upstart: initctl: Unknown job

I have a job that's perfectly normal: > start c4-ha-policy ; stop c4-ha-policy c4-ha-policy (start) waiting c4-ha-policy (start) starting c4-ha-policy (start) pre-start, process 1731 c4-ha-policy ...
2
votes
1answer
122 views

Upstart and pre/post scripts

I run into an issue with upstart where I want to update an init config, but just restarting the job doesn't apply the changes. For example: I've got job xyz running I modify the /etc/init/xyz.conf ...
2
votes
2answers
1k views

Upstart multiple instances of service not working

I started playing with MongoDB on Lucid. Now I would like to run a DB and Config server on the same box. They both use the same binary to launch, but with different config files and running on ...
2
votes
1answer
1k views

autofs fails to mount nfs mounts on Ubuntu Lucid Lynx (10.04)

When booting, the system fails to mount nfs mounts due to statd not being started. After manually starting statd, nfs mounts are automatically mounted by autofs. Even though /etc/init/statd.conf ...
2
votes
1answer
57 views

High CPU usage with wineconsole running in background

I have a (pretty simple) Windows console application which I want to run on a Linux server using Wine. When I just run it from the terminal over SSH like wine myapp.exe everything works great. It ...