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

0
votes
2answers
527 views

Starting nodejs application on server start gives exit with code 2

I'm running the below on server startup: exec sudo -E -u www-data /usr/bin/node /etc/nodeserver/app.js >> /var/log/applicationserver.log 2>&1 The console writes many messages that the ...
2
votes
2answers
1k views

Upstart does not correctly start service (or kills it instantly)

I am trying to use upstart to start a daemon on the "input-device-added" event, however if someone knows of a different method to start something on the same event that doesn't involve Upstart I would ...
2
votes
1answer
2k views

How can I boot to upstart failsafe mode?

http://upstart.ubuntu.com/cookbook/#failsafe-mode-ubuntu-specific says 11.10 introduced a new failsafe mode. How can I boot to it? What commands do I give grub to pass to upstart to do this failsafe ...
3
votes
2answers
8k views

How can I boot into recovery mode if it hangs booting single user?

How can I boot into recovery mode if it hangs booting into single user mode? I am trying to boot into "recovery mode" or any single user mode, but upstart is trying to start modem-manager no matter ...
2
votes
1answer
1k views

Using start to run node application on startup

I have a problem with the node_module-path. Can someone let me know what I'm doing wrong? Running exec sudo -u www-data /usr/bin/node /etc/node/app.js gives me Error: Cannot find module 'connect' ...
4
votes
2answers
527 views

A way for an Upstart event to be sent whenever ecryptfs homedir mounted/unmounted?

I have an encrypted homedir (ecryptfs) and I'm wanting to run a private mysql daemon with the database files in my homedir. The daemon should be started whenever the homedir is mounted, and stopped ...
5
votes
2answers
20k views

How to start jenkins?

I installed jenkins via sudo apt-get install jenkins. However, it doesn't start up. Tried to start it manually using sudo /etc/init.d/jenkins start. But it says this message when I try to start it ...
1
vote
2answers
766 views

Where do I put my start up script for mysql?

I have created a second instance of MySQL on the server for replication, if I start the process manually it works but need it to start at bootup. I used to just do a bash script in the init.d folder ...
9
votes
2answers
12k views

How do I configure upstart to run a script on shutdown when the process takes longer than 10secs?

I am running ubuntu 11.10 in a virtual machine (VirtualBox) to learn more about development in linux. I am using a git repository to save my work and have written a script to bundle my work up and ...
3
votes
1answer
944 views

GDM killed on startup

In order to fix a sound issue, I'd completely removed all PulseAudio packages, which removed several additional packages which I hadn't kept track of. I have since added back several packages that ...
6
votes
1answer
5k views

Expand variables in upstart script

I have written several upstart scripts to start transmission-daemon for several users. The script is this: start on (local-filesystems and net-device-up IFACE=eth0 and runlevel [235]) stop on ...
2
votes
1answer
1k views

Upstart scripting: Start service and immediately run another command

Here is my current Upstart script I've placed at /etc/init/redis.conf: description "redis server" start on runlevel [2345] stop on shutdown exec sudo /opt/redis/redis-server /opt/redis/redis.conf ...
2
votes
0answers
733 views

/dev/mapper/cryptsetup1 is not ready yet or not present, slow system [closed]

Today I had a very high system load because I used many applications at the same time (VirtualBox, totem, firefox,...). The load was so high, that the system almost didn't react anymore. Then I killed ...
2
votes
1answer
721 views

upstart respawn with two child processes

I have an upstart script like so: start on runlevel [2345] respawn script exec su - ubuntu -c "cd /opt/app; bin/widget 2>&1 | logger -t 'widget'" end script The problem is when the widget ...
25
votes
9answers
30k views

Why isn't my upstart service starting on system boot?

Following on from this question, I have written a simple upstart service (/etc/init/pms.conf) for my headless Ubuntu Server 11.04 box as follows: start on filesystem and net-device-up IFACE=eth0 stop ...
11
votes
1answer
5k views

Upstart service never starts or stops completely

I'm trying to make a simple upstart script for teamspeak server, but can't make it work. When I say initctl start it just executes but never finishes or even emits any message. Same is happening ...
12
votes
2answers
10k views

How do I set up a service?

I have a script that I would like to run as a service on my Ubuntu Server 11.04 headless box. That is, I want to have the correct files under /etc/init.d/ and to be able to control it via the service ...
14
votes
3answers
9k views

Why does upstart keep respawning my process?

I wrote an upstart script to launch a daemon inside a tmux session. It works well and respawns the process if it dies unexpectedly, but I can't seem to stop it manually. The job (called bukkit) looks ...
1
vote
1answer
667 views

Not able to start juggernaut server as a background processs/service

I am using ruby on rails application to implement chat. I am not able to setup juggernaut server in production mode. I followed this guide to setup redis. and its working perfectly fine. Then I ...
7
votes
1answer
2k views

Do newer Ubuntu releases benefit from multicore processors at boot time?

I've read the Upstart features and it says nothing about concurrency. I also read old advices to set CONCURRENCY value in the /etc/init.d/rc But there is a comment: Specify method used to enable ...
1
vote
1answer
469 views

Sequential hook before entering runlevel?

I have a very specific problem and I've been fighting Upstart all night with no success. I my particular case, I have a server with a bunch of PXE booted clients. The data for the clients is stored ...
2
votes
2answers
6k views

How can I do chkconfig like in Fedora? [duplicate]

Possible Duplicate: Chkconfig alternative for Ubuntu Server? In Fedora I can do $ chkconfig --list | grep ssh Note: This output shows SysV services only and does not include native ...
2
votes
1answer
210 views

while setting upstart in application giving error

wht i have done is sudo emacs /etc/init/app.conf and then i write the code for my upstart # application Server description "applicationServer" author "Rahul Mehta ...
28
votes
2answers
131k views

How to start and stop a service? [duplicate]

Possible Duplicate: What’s the recommended way to enable / disable services? Are there any other command to start stop restart service in ubuntu other than the below following. service ...
2
votes
0answers
631 views

how to check node.js application with monit [closed]

We have an app in node.js , we are using startup for starting and stoping. but we want to implement monit for monitoring the app. so what i have done is Installed Monit. Changed configure file . ...
2
votes
1answer
510 views

Have a parameter applied to service for Upstart

I want to run my webcit service with the -f option, how do I put that in the service script (/etc/init.d/webcit)? The lines that look relevant are: RUNDIR=/var/run/webcit ...
1
vote
1answer
1k views

Why can't upstart start cups or mysql?

For some reason I can't start mysql or cups using upstart i.e. "service cups start" results in "start: Job failed to start". How can I debug this? I also tried resintalling using synaptic, but that ...
3
votes
0answers
647 views

How to convert cups to an upstart job? [closed]

I'm having some issues with cups on 10.04 (64 bit). I'm running about 200+ machines with the same image and cups crashes a lot. What I'd like to do is create an upstart job to monitor and respawn ...
7
votes
1answer
6k views

“respawning too fast, stopped”. How to make UPSTART disable for 5 mins?

In the old days, the init daemon used to disable tasks that were respawning too fast. I discovered to my peril that UPSTART just stops them. forever. I have found the COUNT and INTERVAL controls for ...
4
votes
4answers
4k views

Upstart script for a transmission-daemon executed as a normal user

I have done a script to start transmission-daemon as a normal user: start on filesystem stop on runlevel [!2345] respawn respawn limit 10 5 pre-start script test -x /usr/bin/transmission-daemon ...
4
votes
1answer
2k views

Starting a service from /etc/event.d works, but not from /etc/init

I'm trying to launch an upstart service on Ubuntu 8.04 from /etc/init/, but I always get start: Unknown job: job. When I try to launch this script from /etc/event.d/ it works fine. Why would this be ...
4
votes
1answer
1k views

Does Upstart emit hooks for SysV jobs?

I want to make an Upstart job start immediately before a System V job (/etc/rc0.d/S40umountfs). I've tried specifying: start on starting umountfs but Upstart doesn't recognize the name of the ...
4
votes
2answers
225 views

How to keep a graphical application running, even if it crashes?

I use Gnome Do as a launcher for most things. I have it set to run on login and for most of the time it sits in the background waiting for me to mash a keyboard shortcut. About once a week, it falls ...
1
vote
1answer
463 views

How to allow Upstart task to block system boot?

I'm writing an Upstart task which runs at runlevel 1. This is for an ecrypted system, and the task's job is to verify the integrity of the MBR & /boot. As such, it is important that this task ...
3
votes
1answer
923 views

App to restart after suspend|hibernate - defined in Upstart?

I want an app to re-start (XBMC, but I failed with Firefox and Krusader doing this, too), after the PC wakes from suspend or hibernate. I want to write a script, which runs at the same conditions, and ...
2
votes
1answer
787 views

What are the upstart events to monitor to attach/detach an EBS volume and an elastic IP at startup/shutdown?

I'm setting up an Ubuntu instance on Amazon EC2 and I'm trying to configure it so that, at startup, it automatically attaches an EBS volume and takes an elastic IP address and, at shutdown, it ...
1
vote
1answer
2k views

Use Upstart to umount NFS at shutdown/restart?

I want to umount NFS drive at shutdown/restart. I connect to it with my laptop, and due to known bug, the system shuts down for ten minutes, instead for 20 seconds, when the NFS is mounted. I used to ...
11
votes
4answers
7k views

Slow boot after clean install of Natty

The time have risen from 20-25 sec in Meerkat to 35 sec in Natty. I do not know if it is ureadahead but made a bugreport of it in launchpad. I tried Fedora shortly before installing Natty. They use ...
4
votes
1answer
2k views

upstart pre-stop killed during shutdown

I'm running Ubuntu server, hosting a virtual machine using an upstart job. I've got it launching on startup, and shutting down the host on exit, but I can't seem to get it to suspend when the host ...
1
vote
1answer
479 views

Is there an upstart event for files systems that get mounted manually?

There is the mounted event in upstart, but it is emitted only when the mountall daemon mounts the devices found in /etc/fstab at startup. Are there any events that get emitted, when I mount a device ...
36
votes
2answers
35k views

how to debug upstart scripts?

For some reason I'm getting an error during apport upgrades, the cause of which is % sudo service apport start start: Job failed to start Under sysvinit, I could debug this kind of problem by ...
2
votes
2answers
1k views

Disable GDM on ubuntu netbook remix

I'm running Ubuntu Netbook Remix 10.10 (on a pandaboard), and it doesn't boot with grub (so I can't pass it the 'text' parameter at boot time). How do i disable gdm so it doesn't start at boot? ...
2
votes
2answers
727 views

Using Upstart after building Apache & Mysql from source

I'm using Ubuntu 10.10, Apache 2.2.17 and Mysql 5.5.10. I need some assistance getting Apache and Mysql running on boot. Reading the getting started over at upstart website attempting to get it to ...
17
votes
6answers
26k views

Upstart script doesn't start

Ubuntu 10.04 I have created this upstart script (/etc/init/pure-ftpd.conf): # pure-ftpd - FTP server description "Pure-FTPd server" start on filesystem stop on runlevel S respawn respawn limit ...
3
votes
4answers
689 views

How does rc job work / order of (contradicting) “start on …” and “stop on …” stanzas

I just can't understand how Upstart's rc job definition in Natty 11.04 works. To illustrate the problem, here is the definition (empty lines and comments are left out): start on runlevel [0123456] ...
1
vote
1answer
422 views

Sense of “stop on…” stanza when job is a task

an upstart question (I think I have read all relevant man pages but could not find the answer there): What is the sense of using a "stop on ..." stanza in the definition of a job which is a task? The ...
7
votes
3answers
5k views

Best way to make a shutdown hook?

Since Ubuntu relies on upstart for some time now, I would like to use an upstart job to gracefully shutdown certain applications on system shutdown or reboot. It is essential that the system's ...
5
votes
1answer
2k views

Upstart kill timeout not respected?

I am currently learning upstart by playing around. I think I have understood the principle now, but I am having difficulties with the "kill timeout" stanza in upstart jobs. For example, I have the ...
8
votes
2answers
5k views

How to get output from upstart jobs when logged in via SSH?

To monitor what my job definitions are doing, I would like to see text output from the jobs. That does not seem to be possible when I am logged on via SSH. I am having this problem with Natty 11.04, ...
2
votes
1answer
1k views

Heartbeat doesn't start [closed]

Heartbeat don't start on automatic. Network interface is not UP when heartbeat start OS version : 10.04 Exact message in boot.log : Starting High-Availability services: bond1: unknown interface: No ...