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

3
votes
4answers
656 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
393 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
4k 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 ...
7
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
8k 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
3k 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
8k 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 ...
21
votes
2answers
13k 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
333 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. ...
8
votes
4answers
6k views

Automatically mount sshfs on startup?

Is it possible to automatically mount a sshfs filesystem whenever the connection goes up?
294
votes
7answers
325k 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
347 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 ...
9
votes
1answer
4k 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
5k 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
8k 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
384 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 ...
4
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
812 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
5k 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.
1
vote
2answers
2k views

upstart, exec and stderr

I am using syslog-ng on a Ubuntu Lucid machine with the following upstart script: # syslog-ng - system logging daemon # description "Syslog-ng daemon" start on (local-filesystems and ...
15
votes
6answers
7k views

upstart-supervised init script for Apache?

I want to run apache on Ubuntu 10.04, and use the nice supervision stuff in upstart (I'm not just talking about the apache init script, but proper service supervision a la daemontools - which is to ...
63
votes
2answers
43k views

What's the difference between “Service” and “/etc/init.d/”?

I've been managing server installations both on and off Ubuntu flavor for some time - I've become quite adjusted to /etc/init.d/ for restarting servcies. Now I get this message: root@tatooine:~# ...
9
votes
4answers
3k views

What is Upstart?

Which operating systems besides Ubuntu use it?