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

1
vote
3answers
346 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
548 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
8k 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
5k 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
473 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
807 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
22k 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 ...
3
votes
1answer
6k 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?
0
votes
1answer
4k 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
40k 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
610 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
691 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 ...
2
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
568 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 ...
12
votes
3answers
11k 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
691 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 ...
26
votes
1answer
16k 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
639 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 ...
3
votes
2answers
2k views

How To Launch GUI App With Upstart Script

I have a python gtk app I need to run when a user logs in. I can't get upstart to launch any gui app, even if x is running. When I'm signed into X, and I emit the event from the upstart script below ...
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 ...
1
vote
1answer
1k views

How to get a bundler enabled rails app running as a service with upstart?

I can get some random shell script to run as a service...that's not the problem. I think it's related to environment variables given some of the google-ing I did. Either a list of required rails ...
0
votes
1answer
739 views

Upstart Jobs and init.d scripts not launching

I'm working on an Ubuntu based browser distro that is meant to be ran live. Part of the security solution is to use sdmem when it shuts down. sdmem wipes the available ram and is found in the ...
6
votes
4answers
54k views

how do you stop/restart ssh?

How do I stop/start ssh in version 11.10? I've tried /etc/init.d/ssh restart sudo service ssh restart sudo restart ssh I get errors every time... arrrr!
5
votes
2answers
1k views

upstart memcached

I've put together an upstart script for memcached based on the init.d script it ships with, as I couldn't find any examples anywhere. The problem is it's not respawning automatically when I kill the ...
3
votes
2answers
1k views

starting sshd on first connection to port 22 with upstart's new socket bridge

Recent Upstart has these new fancy systemd-like features of starting jobs on incoming connection via socket-bridge. I'd like to start my sshd upon first connection to port 22. I now have: start on ...
3
votes
2answers
5k 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. ...
0
votes
1answer
1k views

Upstart not loading services

I have a machine that boots no problem but a lot of the services do not start. The run level when I login is "N 2". Services can be manually started but not starting on boot. I am running 10.04.3 ...
0
votes
1answer
613 views

Missing Samba upstart job

Somehow my K20samba4 was deleted. How can I restore it (ie does anyone know where I can get the script)?
2
votes
1answer
6k views

how to add/edit parameters for a startup service (/etc/init.d/)

I have installed pure-ftp server but i had problems logging into it with virtual users. I managed to diagnose the problem: it's the incomplete default parameter specification. This is how the script ...
1
vote
2answers
531 views

Upstart not running my dynamic DNS script

I have a dynamic DNS script as follows: #!/bin/bash curl -kL# "http://example.com/updatedns.php" echo $? >> /var/log/ddns ...saved to /usr/local/bin/ddns. Obviously the URL above isn't the ...
2
votes
0answers
52 views

Is there an rcconf equivalent for upstart that works on the command line? [duplicate]

Possible Duplicate: How to start, stop, restart a service While I'm a big fan of upstart I would like to see a rcconf tool that can manage both traditional sysv services as well as upstart ...
6
votes
1answer
15k 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 ...
1
vote
1answer
2k views

How do I get Upstart to start my Mediatomb service?

I've been struggling, trying to get my Mediatomb server to start automatically on Upstart run level 2. I can't figure it out. I guess Upstart is still new to me and I don't understand it. I even ...
5
votes
2answers
932 views

Upstart not executing the exec function in upstart.conf

I have a completed upstart conf file loaded here: http://pastebin.com/5E7J5jEY but I'm having trouble with the upstart not executing the exec function and/or relinquishing the kernel console CLI back ...
6
votes
1answer
1k views

ubuntu upstart script execute a script.py program

I'm creating an upstart script to execute a python program I've written. When the service is starting I want to echo starting service - script.py... and echo the process id of the program once ...