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

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
605 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
685 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
560 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 ...
11
votes
3answers
10k 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
680 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 ...
25
votes
1answer
15k 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
4k 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
631 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
734 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 ...
5
votes
4answers
53k 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
610 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
528 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
923 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 ...
2
votes
1answer
272 views

Using libnotify from a daemon started with upstart

I have a python script that gets messages from an MQTT server and parses them to display using libnotify. This works fine when I run it from a terminal, but when I run it using upstart I get no ...
12
votes
2answers
16k 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 ...
0
votes
2answers
549 views

Starting nodejs application on server start gives exit with code 2

I'm running the below on server startup: exec sudo -E -u www-data /usr/bin/node /etc/nodeserver/app.js >> /var/log/applicationserver.log 2>&1 The console writes many messages that the ...
2
votes
2answers
1k views

Upstart does not correctly start service (or kills it instantly)

I am trying to use upstart to start a daemon on the "input-device-added" event, however if someone knows of a different method to start something on the same event that doesn't involve Upstart I would ...
2
votes
1answer
2k views

How can I boot to upstart failsafe mode?

http://upstart.ubuntu.com/cookbook/#failsafe-mode-ubuntu-specific says 11.10 introduced a new failsafe mode. How can I boot to it? What commands do I give grub to pass to upstart to do this failsafe ...
3
votes
2answers
8k views

How can I boot into recovery mode if it hangs booting single user?

How can I boot into recovery mode if it hangs booting into single user mode? I am trying to boot into "recovery mode" or any single user mode, but upstart is trying to start modem-manager no matter ...
2
votes
1answer
1k views

Using start to run node application on startup

I have a problem with the node_module-path. Can someone let me know what I'm doing wrong? Running exec sudo -u www-data /usr/bin/node /etc/node/app.js gives me Error: Cannot find module 'connect' ...
4
votes
2answers
558 views

A way for an Upstart event to be sent whenever ecryptfs homedir mounted/unmounted?

I have an encrypted homedir (ecryptfs) and I'm wanting to run a private mysql daemon with the database files in my homedir. The daemon should be started whenever the homedir is mounted, and stopped ...
5
votes
2answers
22k views

How to start jenkins?

I installed jenkins via sudo apt-get install jenkins. However, it doesn't start up. Tried to start it manually using sudo /etc/init.d/jenkins start. But it says this message when I try to start it ...