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

2
votes
1answer
2k views

How to add startup services?

I'm on 12.10 and I use Synergy to share my mouse between my laptop and desktop monitors. I tend to start the synergys daemon manually, but I'd like for it to start automatically after boot. Now I've ...
1
vote
0answers
984 views

Upstart job not running at boot

Hi all I have been trying to figure out my problem for some time and think it is now time to ask someone who know more than me. Hopefully this is only a simple solution for someone in the know ...
16
votes
4answers
24k views

Upstart is not seeing my new script

I've added a new script to /etc/init/ called minecraft.conf which contains the script: start on startup stop on shutdown respawn respawn limit 20 5 script export HOME="/root" exec /root/...
3
votes
2answers
411 views

What happens to manual Upstart services on shut down?

If using the manual keyword in an init or override Upstart script, it is not clear whether the services shut down process will be initiated or it will just be killed on shut down. For instance, will ...
4
votes
1answer
10k 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 /etc/...
9
votes
1answer
7k views

Upstart conf changes do not reload after edit

After I make some changes to an upstart conf file upstart does not reload the new changes until I reboot the system start on filesystem or runlevel [23] stop on runlevel [6] respawn expect fork ...
5
votes
1answer
355 views

upstart init script remains on apt-get remove

I just created my first .deb file ever from a Python script. I included a package.upstart file under package/debian and all installed great. However, I noticed that apt-get remove package leaves the ...
11
votes
4answers
8k 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 ...
1
vote
1answer
277 views

Using Upstart like old fashion init script

How can I use Upstart and have the same we use to have by using "# Should-Start:" at the BEGIN INIT INFO of the init script? Is it there any way I can tailor the "start on started" based on a ...
1
vote
2answers
2k 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: http://...
2
votes
1answer
161 views

How to check in script if upstart event was emited?

I am running remote connection on session start using xdg autostart script. But sometimes network interface needs more time to start. So I need to check if network is up. Is it possible to check if ...
12
votes
2answers
5k views

How system services are started in 12.10?

One thing that always confused me in Ubuntu was how system services are started. I know that Ubuntu uses Upstart and supports SysV, but which one is used to start the services? This matters when you ...
2
votes
1answer
140 views

With Upstart what does it mean in terms of performance to have a “initramfs-less boot support”

Reading the latest Upstart version (Upstart 1.6 right now), I saw the following line: Added initramfs-less boot support Does this mean that the step for initramfs can be skipped? Will the booting ...
2
votes
0answers
352 views

Quickly stop all network services except sshd (or boot with only sshd running)

I have an Ubuntu Server 12.04 box acting as a home file server. At times I would like to be able to brings down all my normal network services (nfs-kernel-server and friends, netatalk, nmbd, smbd, ...
1
vote
3answers
993 views

Upstart job: Run task once per event

I'm a little confused regarding how jobs start on Upstart events. To illustrate my misunderstanding, I have four Upstart jobs that look like the following: Job 1: start on local-filesystems task ...
3
votes
2answers
2k views

How to move over from init.d to upstart for nginx

I have an init.d script for nginx that normally works fine. However, after a reboot it doesn't work properly and the worker process would die leaving just the master process. nginx has some mongodb ...
7
votes
6answers
25k 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 ...
2
votes
1answer
3k 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: dre@dre-...
1
vote
1answer
40 views

Upstart 1.6 Doubts about performance

With Upstart 1.6, I have a couple of questions: What does it mean it is able to "boot without initramfs". Does it mean it will boot faster without loading an image to RAM (Or doing it with an ...
2
votes
2answers
6k views

Why my upstart script doesn't run?

I don't understant why my script is not running. Here is what I did (I'm using Ubuntu 10.04). I wrote a mountFTP.conf script: description "Mount the remote FTP for sync" start on started tty1 ...
2
votes
2answers
9k views

How to force dhclient to run?

I usually run with eth0 config'd statically from info in /etc/network/interfaces, but sometimes need to use a dhcp acquired config. Running dhclient just tells me it's now an upstart job and suggests ...
1
vote
2answers
228 views

How do I startup the Computer with an alarm and run a scheduled program?

I want to start my torrent downloading at night after 11 PM so I need my computer to start automatically at 11 PM and then log in to an account and start a torrent program. I know that I can start up ...
0
votes
1answer
455 views

X : conditional xorg.conf file during startup

I've got a computer which I use at a couple of different sites, and I've got differen monitors at those sites. What I've done is that I've ceated different xorg.conf files for each of these sites. ...
2
votes
1answer
218 views

Failed to use upstart to control startup dependency

In a server I have memcached and apache2 installed, I want my apache2 ONLY can start if memcached is started, so in my apache upstart script, I added the line From start on runlevel [2345] To ...
0
votes
1answer
77 views

For processes to be up and running all the time

I want my python program sample.py to be always up and running. I have read some things and asked people about ways to do this. So far I have following options - Upstart Cron I am trying things ...
2
votes
1answer
5k views

Ubuntu 12.04, why service procps start doesn't start procps?

I have been trying to get some settings in /etc/sysctl.conf to take effect upon rebooting. So, I did the following as the root user on this node running Ubuntu 12.04 LTS 64bit # service procps ...
2
votes
1answer
1k views

Boot computer to text mode using kernel parameters

Referring to this question: How to remove the graphical user interface? The answer of modifying /etc/default/grub to have GRUB_CMDLINE_LINUX_DEFAULT="text" would be great, but unfortunately I don't ...
1
vote
1answer
2k views

What is the current state of Ubuntu's transition from init scripts to Upstart?

What is the current state of Ubuntu's transition from init.d scripts to upstart? I was curious, so I compared the contents of /etc/init.d/ to /etc/init/ on one of our development machines, which is ...
7
votes
2answers
9k views

How to diagnose Upstart errors?

I have an Upstart conf file in /etc/init which starts fine if i start it manually like this: sudo initctl start myconf If i run it without the sudo command i get the error name=(unset) error, which ...
19
votes
3answers
50k 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 ...
0
votes
1answer
296 views

Apache doesnt start after upgrade to 12.10

during the upgrade process I was wondered for "replace init.d", and I said "keep", not replace. Now, apache2 is not working. I tried removing and upgrading again, but doesnt start. I have this error ...
1
vote
0answers
298 views

Upstart service stops when I log out

I've written an upstart script I want to run when my server starts up, only it does not. It will run when I call sudo start wiki, where wiki is the name of my service, however it stops running when I ...
3
votes
2answers
541 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. ...
7
votes
1answer
5k views

How do I choose which way to enable/disable, start/stop, or check the status of a service?

If I want to start a system installed service, I can do: # /etc/init.d/some-svc start # initctl start some-svc # service some-svc start # start some-svc If I want to disable a service from running ...
7
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
880 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 ...
4
votes
1answer
571 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
32 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 to ...
4
votes
2answers
780 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
15k 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
7k 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
23k 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
2k 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 ...