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

1
vote
1answer
468 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 ...
26
votes
2answers
125k 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
625 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
496 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
640 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
224 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
453 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
913 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
766 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
475 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 ...
33
votes
2answers
33k 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
724 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 ...
16
votes
6answers
25k 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
675 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
418 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 ...
6
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 ...
10
votes
2answers
9k views

What events are available for Upstart?

Is there a list of available events that can be used for Upstart? For example start on local-filesystems so local-filesystems is an event but when is it triggered and what other events are there?
7
votes
3answers
4k views

Upstart, one job definition to start and one to stop

Hi i just discoverd ubuntu upstart (etc/init/* scripts). And i would like to use it to run a particular application. This app is run via a command line, but there is an argument to start an instance ...
10
votes
1answer
9k views

Want to make an upstart script; need help and advice

Atm, I need to randomly start and stop (for lack of a better word in my mind) a job. I start it by typing java -jar foo.jar and to stop it find out its pid and kill it. Killing it doesn't cause any ...
23
votes
2answers
15k views

How can I make sure one Upstart job starts before other Upstart jobs?

This is a general Upstart question, but let me use a specific case: Centrify is a NIS to ActiveDirectory gateway. It needs to load before any service that will depend the authentication service that ...
2
votes
1answer
341 views

upstart on 8.04

My understanding is that upstart is installed on 8.04, but it's different than 10.04. I'm having trouble finding documentation on how to start/stop/check services from the command line for 8.04. ...
9
votes
4answers
7k views

Automatically mount sshfs on startup?

Is it possible to automatically mount a sshfs filesystem whenever the connection goes up?
324
votes
7answers
370k views

How to enable or disable services?

I read about how to enable and disable services in Ubuntu and it seems that there are different possibilities to manage them. The first method I found is update-rc.d to add new services to startup, ...
3
votes
1answer
358 views

Is init.d “safe” enough to use or should i use `runit` or `daemontools` on a server

I am looking to deploy my application on a server on which I would have no access in the future. I would like to have an indication of start-up errors generated by my program in particular and the ...
3
votes
1answer
3k views

How to set up Java-based services for startup?

What's the best way to set up a Java-based program to run an service and start on boot? upstart (pre-start script and post-stop script ?) plain old SysV init? (start-stop-daemon ?) In my case I am ...
10
votes
1answer
5k views

How do I disable irqbalance?

The title says it all really. I don't want to just kill something that seems so close to the bare metal, and sudo service irqbalance stop says stop: Unknown instance: -- what am I missing? Should I be ...
5
votes
2answers
6k views

MySQL server Upstart script not working on boot

For some reason the Upstart script for the MySQL server isn't working when I boot my server, however it does work once the server has booted and I execute sudo start mysql manually. I'm running an ...
9
votes
3answers
9k views

From init.d to upstart, is there a bridge?

I've got a perfectly good script for use in /etc/init.d. In fact, I have a lot of them, all created with the Tanuki Java Service Wrapper. It would seem to me that there could be a simple template for ...
12
votes
3answers
6k views

How to set a Upstart job to start manually?

I want to disable a bunch of upstart jobs here. I know how to make a upstart job. And also I know how to stop manually a job. However, I can't find a sample where I turn a automatically job into a ...
3
votes
1answer
391 views

Why does mysql process starts on boot?

As you can see, mysql exists only in the /etc/init.d directory and not in /etc/rcN.d, therefore it shouldn't start on boot. $ sudo find /etc -regex ".*\(rc.*d\|init\.d\).*" | sudo grep "mysql" | sort ...
5
votes
2answers
3k views

How do I setup gunicorn?

Upstart doesn't like to start gunicorn because it tries to call setpgrp (see github issue), what would be the best way to start [gunicorn] on a 10.04.1 server install? - Ideally with automatic ...
1
vote
1answer
843 views

Auto complete for startable/stopable services?

Before upstart it was easy to get proper autocomplete, e.g. I type sudo /etc/init.d/rsys<tab> and what I want to do and there I go. Now I need (?) to write sudo stop rsys<tab> but it ...
7
votes
1answer
3k views

why would /etc/init.d/mysql run the wrong upstart job?

update: /lib/init/upstart-job has been replaced with the MongoDB init script. For some reason, /etc/init.d/mysql start|stop|restart|status (/etc/init.d/mysql is simply a symlink to ...
6
votes
2answers
6k views

upstart config to start sync daemon as non-root user

I am planning to use inosync to sync data from master server to several client servers. I have created a user called rsyncuser in both master and slaves with access permissions and passwordless ssh ...
6
votes
3answers
6k views

Auto-start service on bootup that depend on network

I have a particular service (in this case OpenFire) that runs at startup. When it starts, it attempts to connect to a database at a given hostname. At startup time it fails to connect to that ...
21
votes
2answers
5k views

Is there any GUI tool for Upstart

Is there currently any GUI based application to show currently running services, with buttons to start and stop services? It doesn't necessarily need to be able to set boot up behaviour.