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

6
votes
1answer
2k views

reliably restarting services using upstart or runit

I want to reliably restart my app and web server processes on crash. If I understand correctly, runit starts every service as a child process. If the child process crashes this sends a signal to the ...
3
votes
1answer
90 views

Installing packages that require system restart, from a Juju charm

I'm writing a Juju charm that installs some new packages, some of which require a system restart. In particular, daemontools-run installs an Upstart file, which would start svcanboot on the next ...
2
votes
1answer
797 views

How to have ssh running in the rescue mode?

If I select rescue mode in GRUB, ssh is not run. I have to type start ssh to have it running. Can I made this be done automatically for me? Typical situation is with broken graphics, when I need to ...
1
vote
1answer
1k views

How do I delay Upstart's net-device-up signal until a condition is met?

I need to wait for a specific condition to be met a network interface is considered "up". Upstart is sending its net-device-up signal before this condition is met, which cases the scripts that depend ...
2
votes
2answers
3k views

Problems with upstart script in ~/.init

I'm experimenting with running Sonar on my Linux desktop box. I wanted to make it start up automatically on startup of the box, but it's ok for it to run as me. I created "~/.init/sonar.conf" with ...
4
votes
1answer
2k views

How can I start SpiderOak automatically on a headless server?

I use SpiderOak for online backup and file synchronisation (a la Dropbox.) I'm running it on my headless server via the SpiderOak --headless command. At the moment, I have to start this manually ...
0
votes
1answer
2k views

Start command doesn't return for upstart script in Ubuntu?

I have written an upstart script called 'ts.conf' for a daemon and put it in /etc/init. When I try to start it with start ts I expect a confirmation message and I also expect to get the prompt ...
3
votes
1answer
498 views

.override file isn't working

I have a file /etc/init/boinc-client.override with the single line manual that I use to prevent the BOINC client from starting up. (I don't want it hogging CPU time away from Folding@Home, for now ...
10
votes
2answers
5k 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
1answer
2k views

How to start up rsyslog automatically?

Check current status of rsyslog $ chkconfig --list rsyslog rsyslog 0:off 1:off 2:off 3:off 4:off 5:off 6:off Start up rsyslog at some levels $ sudo chkconfig --level 35 ...
0
votes
0answers
31 views

Upstart System Services manager /etc/init NOT /etc/init.d [duplicate]

Possible Duplicate: What's the recommended way to enable / disable services? How can I manage new Ubuntu System Services? The ones located in /etc/init/ and not in /etc/init.d/ I want ...
4
votes
2answers
676 views

Access dbus session bus from upstart script

I was wandering if it is possible to access the DBUS session bus from within an upstart script. The background is this: I am running an upstart task in user mode and replaced the Upstart.conf dbus ...
7
votes
2answers
13k 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 ...
10
votes
3answers
6k views

/sbin/getty process causing 100% CPU utilization

I have an instance of Ubuntu 12.04 LTS (GNU/Linux 3.2.0-25-virtual i686) running as a KVM-VM on a host-machine that runs one more VM beside it. I deploy a Ruby on Rails application using the ...
8
votes
2answers
22k 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 ...
0
votes
1answer
1k views

AutoSSH for a robust tunnel

I'm trying to start an ssh tunnel from A to B and have it run despite things like: period network/wifi drops on A and remote server reboot on B. My ssh tunnel starts using upstart script on A with ...
0
votes
1answer
240 views

Why my upstart script don't work?

It is strange the script use to work fine,but after the proxy went down for a while,it don't work all the time. But the command in script section can still do it's job,and I have no idea what's going ...
1
vote
3answers
365 views

How do I start certain services only when needed?

I have a laptop. I use it for web+email a lot, and then some days for web development. Using it for the latter, I need apache2 and mysql server running, but normally I do not. I'd like a normal boot ...
1
vote
2answers
4k views

Installed plex media server, and it wont start

I just installed plex media server via the software center, and when I try to start it I get initctl: Unknown job: plexmediaserver How can I fix/debug this issue?
2
votes
2answers
649 views

How do I prevent race conditions in Upstart 'starting on' scripts?

I am working on a package that needs two Upstart jobs: one that launches a daemon, and another that launches a supporting daemon if the configuration file requires it. The logic to determine if the ...
6
votes
2answers
9k views

Starting java processes with Upstart

I want to start a java process using Upstart. Currently, on our OpenSuSE servers, I use the System V init system to achieve this, but on our Ubuntu servers I'd rather use Upstart. But I have two ...
16
votes
4answers
6k views

How do I stop all processes in a chroot?

I have a number of LVM partitions, each containing an Ubuntu installation. Occasionally, I want to do an apt-get dist-upgrade, to update an installation to the most recent packages. I do this with ...
1
vote
1answer
503 views

How to user interact during boot using upstart? [duplicate]

Possible Duplicate: Upstart script: Detect shift key down at boot I want to add a question during boot. The user is supposed to make keyboard inputs and depending on those inputs, there is ...
2
votes
1answer
950 views

How do I correct items that are now upstart jobs but still have an entry in /etc/init.d?

How do I correct items that are now upstart jobs but still have an entry in /etc/init.d? I have an ubuntu 12.04 machine which complains in the boot.log file like: Since the script you are ...
3
votes
3answers
12k views

How does dhclient get called under 12.04

In my 12.04 Precise install, when I boot the system, or when I plug in an ethernet cable, dhclient isn't run automatically on my wired eth0 connection. I have no running dhclient daemon. When I run ...
7
votes
1answer
7k 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 ...
7
votes
4answers
24k 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 ...
5
votes
2answers
2k views

How I can run ubuntu in chroot on Android?

I want to run fully functional Ubuntu on my Android device in chroot. But I have some trouble with upstart. In chroot "it will actually run /sbin/telinit", so how i can run upstart or replace it with ...
3
votes
1answer
3k views

Python script as a service on Ubuntu 11.10

I am facing the following problem. I want to run a python script as a service on Ubuntu 11.10 system (already mentioned in the following link: Python service using Upstart on Ubuntu) I followed the ...
2
votes
3answers
2k views

How to start a task before networking?

I've written an upstart task that modifies /etc/network/interfaces. (Actually a file sourced into it.) Which start on condition do I need to declare to let my task run before any networking jobs? ...
0
votes
1answer
2k views

Boot order of MySQL

I have a conflict with two programs in Ubuntu 10.04. I have configured an init.d file that boots up a program. However, this program requires MySQL to be running before it starts. When I boot the ...
3
votes
2answers
2k views

Starting a user-space program as non-root user at boot with upstart

Is there a method to set up an upstart script to execute a user-space program without keeping root privileges, but so the user which has directory/permissions-based ownership of the program can ...
4
votes
1answer
7k views

Why does Upstart need `setgid` when I have `setuid` and the user is a member of the group?

I'm attempting to configure Upstart to run a small utility that needs to access a tty as a system-wide daemon. When run from the command-line, the utility remains in the foreground and doesn't exit ...
0
votes
2answers
7k views

Squid3 fails to start on boot

Squid3 does not start automatically on boot, in some cases. I have start it manually with sudo service squid3 start. Any reason why?
1
vote
1answer
5k views

vncserver in rc.local will not run at boot

I'm using /etc/rc.local and here is the current contents: Okay, for some reason the formatting here isn't making a codeblock and instead is making everything bold and 3x the size. Those who are able, ...
2
votes
2answers
1k views

Can I use an alternative to upstart?

Hi can i use the old style init scripts under ub 12.04? im fed up with my upstart scripts working intermittently. I have a process which relies on cifs mounts (defined in fstab). I've tried all the ...
12
votes
1answer
11k 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 ...
11
votes
1answer
42k 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?
3
votes
5answers
26k 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 ...
0
votes
1answer
631 views

Alternative way to start mysql server other than upstart?

I have a chrooted 10.04 LTS installation on a NAS, it works great but breaks Upstart very badly. MySQL only works via Upstart these days, so I created a workaround to start like this: dtach -n ...
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. # ...
1
vote
1answer
731 views

Customizing upstart “restart” commands

I'd like to run a different command when upstart is restarting a process than when it is starting a process. In particular, I'm using Thin and I want to do a rolling restart (built in to thin via a ...
3
votes
3answers
2k views

Debugging the execution order of Upstart jobs [duplicate]

I'd like to be able to debug the execution order of the jobs started by Upstart (ideally without injecting dumping code into every job file). How can I do this?
1
vote
1answer
615 views

Upstart for pydoc webserver

I'm trying to use upstart so that the pydoc webserver for a package I'm developing always runs. If I run it from the command line: pydoc -p 7464 /some_path/my_python_package it works fine, and ...
15
votes
3answers
12k views

Debugging: Console Output and Upstart Scripts

How do you send the output of an upstart script to a terminal so to find tracebacks in python code? It's taking me for ever to do things without trace-backs that used to take just a second. I'm ...
7
votes
2answers
724 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 ...
28
votes
1answer
18k views

What is the meaning of this Upstart init error?

$ start playframework start: Rejected send message, 1 matched rules; type="method_call", sender=":1.6" (uid=1000 pid=1080 comm="start portal ") interface="com.ubuntu.Upstart0_6.Job" member="Start" ...
2
votes
1answer
1k views

Managing dependency across Upstart and SysV-style init.d script

I have an Upstart job that must run before a SysV-style init.d script runs. The init.d script is configured to be started in the runlevels 2, 3, 4 and 5 with priority 20. What can I do to have the ...
1
vote
4answers
5k views

How can I run this script on startup, restart, and shutdown?

I'm using Ubuntu 11.10. I've written a script, that synchronises a directory in ~ with a directory on /dev/sda4, using Unison. Before, I had this script running every five minutes with no problems, ...
2
votes
1answer
675 views

Upstart Script Variables That Wait For System Services To Be Available

I'm writing an upstart script that has to issue several utilities to manipulate files, ls, rm, etc. Some of these commands are not being executed. If I put a timer and make the script wait, they ...