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

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, ...
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:~# ...
3
votes
5answers
23k 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 ...
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 ...
4
votes
1answer
1k 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: ...
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: ...
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: ...
7
votes
2answers
11k 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
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
3k views

What is Upstart?

Which operating systems besides Ubuntu use it?
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 ...
20
votes
2answers
12k 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?
26
votes
2answers
28k 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 ...
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 ...
11
votes
1answer
36k 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?
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 ...
12
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 ...
3
votes
2answers
167 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
902 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
305 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
611 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
8k 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 ...
2
votes
4answers
10k 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 ...
1
vote
1answer
97 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 ...
22
votes
4answers
46k 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 ...
25
votes
2answers
109k 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
19k 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
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
1answer
6k views

user upstart job in ~/.init/ is not found

Running 12.04, I have the following upstart job in ~/.init/: # myjob start on net-device-up stop on [!12345] script echo ">> hello from user script" >> ~/tmp/upstart.log end script ...
10
votes
2answers
13k 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 ...
8
votes
2answers
17k 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 ...
5
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 ...
23
votes
9answers
26k 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
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.
3
votes
3answers
120 views

How do I create a single-execution Upstart job guaranteed to complete before two other jobs begin?

How does one write an Upstart task that is guaranteed to run only once after each startup but is also guaranteed to run to completion before either one of at least two other jobs start running. I do ...
3
votes
0answers
36 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
7k 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
4answers
4k views

Allow non-sudo group to control Upstart job

I'm trying to set up an Upstart job to run on system startup, and that can also be started/stopped by members of a group other than sudo. With a previous version, I usedupdate-rc.d and scripts stored ...
9
votes
1answer
23k 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
13k 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
2k 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? ...
1
vote
2answers
518 views

How do I run a script on Unity login/logout?

I have two scripts - one to mount some folders over SSHFS - and one to unmount. I would like to launch the mount script when my default Ubuntu desktop is launched (after I log in at the graphical ...
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. # ...