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

270
votes
7answers
291k 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, ...
56
votes
2answers
40k 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:~# ...
3
votes
5answers
22k views

After Upgrading to 12.04 I can't get to the login screen

I cannot go pass the black screen and the following shows up on my screen after upgrading and rebooting with the Ubuntu update manager from 11.10 to 12.04: ata_id [27]: HDIO_GET_IDENTITY failed for ...
3
votes
1answer
315 views

Where are Upstart log messages on Ubuntu 13.X?

On Ubuntu 12.04, I can find Upstart log messages in /var/log/syslog. Commands: # initctl log-priority info # initctl emit hello Log: Apr 1 01:56:56 precise64 kernel: [ 8365.820425] init: ...
20
votes
2answers
12k 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 ...
0
votes
2answers
1k views

Postgresql - configuring as Upstart job problem

I need Postgresql configured to start with the Upstart system because I use Upstarts events to start another app which depends on pgsql to be running. This is the tutorial/script I've used: ...
3
votes
2answers
4k views

Running commands on boot in 11.10

So I am getting properly confused on how to create a startup script on my Ubuntu 11.10 server. I have read about init-scripts, upstart-jobs and more, but I get even more confused the more I read. ...
9
votes
4answers
2k views

What is Upstart?

Which operating systems besides Ubuntu use it?
2
votes
1answer
2k views

cannot get upstart to run user job

I am trying to get upstart start a user job during the boot of my machine. I have my conky.conf upstart config file in my $HOME/.init directory. Wenn I run "start conky" I get this error: ...
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
24k 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 ...
15
votes
3answers
7k views

How can I replace upstart with systemd?

Since Mark Shuttleworth decided to switch to sytemd in the future, I was wondering if I can install it on my Ubuntu now?
11
votes
1answer
34k views

How to config start services with Upstart?

Since upstart 1.5 comes with Ubuntu 12.04, bum and sysv-rc-conf is no longer effective on it. How can I config?
7
votes
2answers
10k 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 ...
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 ...
6
votes
1answer
4k 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 ...
11
votes
2answers
8k 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 ...
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 ...
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 ...
3
votes
2answers
129 views

How To Run An Application On Startup Automatically?

I am using "UbuntuServer13.10" and I have Dynamic IP. So for learning purpose, I want to add a host on my dynamic IP to open my server easily from anywhere. For this purpose, I used www.noip.com ...
3
votes
1answer
879 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 ...
0
votes
1answer
277 views

An alternative to init.d?

Is there an alternative to Ubuntu's init.d? Like a way of starting and stopping daemons that don't require those monstrous init.d scripts: # cat /etc/init.d/skeleton #! /bin/sh ### BEGIN INIT INFO # ...
7
votes
2answers
596 views

Upstart script: Detect shift key down at boot

I want to create a boot up potential which allows a different upstart/runlevel configurations to load based upon specific key downs at boot (or combos). How do I detect a key down event with an ...
3
votes
1answer
7k views

Why isn't rc.local executed?

I am PXE booting some Ubuntu machines in a cluster. All of a sudden my rc.local script has stopped working. I've check the permission of /etc/rc.local: -rwxr-xr-x 1 root root 1087 Jan 14 11:04 ...
1
vote
1answer
24 views

xbmc upstart scrip delivers no sound

I want xbmc to start on boot, as well as restart when it crashes. Currently, I auto-login to a user ('public') and have xbmc as a startup application. But if xbmc crashes it does not restart, which is ...
1
vote
4answers
8k views

Why doesn't network-manager start at boot?

I think this started happening a couple of months ago when I upgraded from 10.04 to 12.04. Whenever I reboot, network-manager does not start. I have to manually run sudo start network-manager, and ...
20
votes
4answers
37k views

How to install an init.d script in ubuntu?

I am trying to install an init.d script, to run celery for scheduling tasks. Here is the steps I followed: copied the file celeryd and pasted it in folder /etc/init.d/ created a configuration file ...
21
votes
2answers
96k 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 ...
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 ...
7
votes
4answers
18k views

How to disable GDM from being automatically started?

After Ubuntu Server 12.04 installation, I installed Xubuntu just to have a minimal GUI: sudo apt-get install x-window-system-core sudo apt-get install --no-install-recommends xubuntu-desktop gparted ...
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.
10
votes
2answers
12k views

How do I start jobs as a non privileged user in Upstart?

I'm using last upstart version for ubuntu 10.4 LTS. upstart is launched with --debug kernel flag. I'm making a custom job configuration for nzbget daemon. Basically, this job has a pre-start script ...
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?
11
votes
1answer
10k views

Differences between Upstart and Systemd

I have read several news sites about Systemd and how better it is but I have not yet seen one that actually compares Upstart with Systemd. Actually, I haven't even seen one that talks about the ...
9
votes
2answers
4k views

What tool can I use to manage upstart services?

How should I configure upstart runlevels ? Of course I could edit /etc/init/XX but that wasn't right way to do this, I think.
8
votes
2answers
16k views

Remove services from upstart

I have mysql installed (from repos) on a development machine (laptop) and I don't need the daemon running on every boot. I've copied /etc/init/mysql.conf to /etc/init/mysql.conf.old and then removed ...
4
votes
2answers
7k views

How do I run a Python script in the background and restart it after a crash?

I have a very simple Python script that I'd like to be always running on my Ubuntu 12.04 server. I thought of using upstart + monit. The problem is that those tools seem rather complicated for a ...
3
votes
0answers
32 views

Stop job before it's dependencies

I have a job that does some things and uses other locally installed services (such as the mail server). Sometimes I do an ACPI shutdown but I need this service to complete the ongoing operation ...
13
votes
3answers
6k 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 ...
9
votes
1answer
20k views

How can I disable avahi-daemon?

How can I disable avahi-daemon and can you explain to me how it runs if it appears as a service but it itsn't in rcN.d? You can stop reading here. In fact, please do unless you want to TEACH a noob ...
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 ...
5
votes
1answer
12k views

Upstart script and start-stop-daemon

I had an issue where making an upstart script would call the script multiple times, causing my IRCd to spawn around 8 times or so. In order to rectify this, I used start-stop-daemon: description "IRC ...
4
votes
2answers
1k views

How do I run a script once and only once in Upstart?

I have a script that starts on desktop-session-start. The first person who logs in graphically after a boot will have this script called. I want it called once, not every time a person logs in. How ...
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? ...
5
votes
1answer
2k views

Python service using Upstart on Ubuntu

I want to create to deploy a heartbeat service (a python script) as a service using Upstart. My understanding is that I've to add a /etc/init/myheartbeatservice.conf with the following contents. # ...
4
votes
1answer
3k views

Why does upstart fail to start my juju service with Unknown job: juju-ubuntu-0?

I'm having issues launching juju on an lxc container through regular juju deploy commands: juju bootstrap juju deploy ubuntu The ubuntu juju status continually says pending. The LXC starts, and I ...
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 ...
3
votes
0answers
2k views

Synaptics driver doesn't load sometimes

Sometimes (randomly), the synaptics touchpad driver won't load on bootup. When reading /var/log/boot.log, i don't see anything touchpad-driver-like being started when this happens. But the file ...
3
votes
2answers
1k views

Why is this laptop taking almost 1 minute to boot Ubuntu 13.04?

My dad's new HP Pavilion dv6 laptop running Ubuntu 13.04 takes almost a minute to boot up - it seems like it's hanging somewhere. Is there something I can do to easily fix it? I need some help ...
3
votes
2answers
363 views

Why does service service_name status give different responses for different services?

Running the "service service_name status" command gives three different types of output when three different service_names are used. I tried with atftpd, apache2, and isc-dhcp-server, as shown below. ...