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
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 in ...
7
votes
1answer
18k 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 ...
2
votes
1answer
3k 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
1k 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
2k 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
292 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 ...
13
votes
2answers
21k 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
627 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
9k 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
2k 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
669 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 ...
6
votes
2answers
31k 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 ...
2
votes
2answers
781 views

Where do I put my start up script for mysql?

I have created a second instance of MySQL on the server for replication, if I start the process manually it works but need it to start at bootup. I used to just do a bash script in the init.d folder ...
11
votes
2answers
16k 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
1answer
1k 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 ...
7
votes
1answer
7k 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 ...
2
votes
1answer
1k views

Upstart scripting: Start service and immediately run another command

Here is my current Upstart script I've placed at /etc/init/redis.conf: description "redis server" start on runlevel [2345] stop on shutdown exec sudo /opt/redis/redis-server /opt/redis/redis.conf ...
2
votes
0answers
752 views

/dev/mapper/cryptsetup1 is not ready yet or not present, slow system [closed]

Today I had a very high system load because I used many applications at the same time (VirtualBox, totem, firefox,...). The load was so high, that the system almost didn't react anymore. Then I killed ...
2
votes
1answer
889 views

upstart respawn with two child processes

I have an upstart script like so: start on runlevel [2345] respawn script exec su - ubuntu -c "cd /opt/app; bin/widget 2>&1 | logger -t 'widget'" end script The problem is when the widget ...
33
votes
11answers
48k 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
5k views

Upstart service never starts or stops completely

I'm trying to make a simple upstart script for teamspeak server, but can't make it work. When I say initctl start it just executes but never finishes or even emits any message. Same is happening ...
16
votes
2answers
16k 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 ...
17
votes
3answers
14k 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 ...
1
vote
1answer
748 views

Not able to start juggernaut server as a background processs/service

I am using ruby on rails application to implement chat. I am not able to setup juggernaut server in production mode. I followed this guide to setup redis. and its working perfectly fine. Then I ...
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 ...
1
vote
1answer
513 views

Sequential hook before entering runlevel?

I have a very specific problem and I've been fighting Upstart all night with no success. I my particular case, I have a server with a bunch of PXE booted clients. The data for the clients is stored ...
2
votes
2answers
6k views

How can I do chkconfig like in Fedora? [duplicate]

Possible Duplicate: Chkconfig alternative for Ubuntu Server? In Fedora I can do $ chkconfig --list | grep ssh Note: This output shows SysV services only and does not include native ...
2
votes
1answer
214 views

while setting upstart in application giving error

wht i have done is sudo emacs /etc/init/app.conf and then i write the code for my upstart # application Server description "applicationServer" author "Rahul Mehta <rahul23134654@gmail....
39
votes
2answers
225k 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 --...
3
votes
0answers
791 views

how to check node.js application with monit [closed]

We have an app in node.js , we are using startup for starting and stoping. but we want to implement monit for monitoring the app. so what i have done is Installed Monit. Changed configure file . ...
2
votes
1answer
605 views

Have a parameter applied to service for Upstart

I want to run my webcit service with the -f option, how do I put that in the service script (/etc/init.d/webcit)? The lines that look relevant are: RUNDIR=/var/run/webcit PATH=/sbin:/usr/sbin:/bin:/...
1
vote
1answer
1k views

Why can't upstart start cups or mysql?

For some reason I can't start mysql or cups using upstart i.e. "service cups start" results in "start: Job failed to start". How can I debug this? I also tried resintalling using synaptic, but that ...
3
votes
0answers
664 views

How to convert cups to an upstart job? [closed]

I'm having some issues with cups on 10.04 (64 bit). I'm running about 200+ machines with the same image and cups crashes a lot. What I'd like to do is create an upstart job to monitor and respawn ...
9
votes
1answer
12k views

“respawning too fast, stopped”. How to make UPSTART disable for 5 mins?

In the old days, the init daemon used to disable tasks that were respawning too fast. I discovered to my peril that UPSTART just stops them. forever. I have found the COUNT and INTERVAL controls for ...
4
votes
4answers
6k views

Upstart script for a transmission-daemon executed as a normal user

I have done a script to start transmission-daemon as a normal user: start on filesystem stop on runlevel [!2345] respawn respawn limit 10 5 pre-start script test -x /usr/bin/transmission-daemon ...
4
votes
1answer
2k views

Starting a service from /etc/event.d works, but not from /etc/init

I'm trying to launch an upstart service on Ubuntu 8.04 from /etc/init/, but I always get start: Unknown job: job. When I try to launch this script from /etc/event.d/ it works fine. Why would this be ...
4
votes
1answer
2k views

Does Upstart emit hooks for SysV jobs?

I want to make an Upstart job start immediately before a System V job (/etc/rc0.d/S40umountfs). I've tried specifying: start on starting umountfs but Upstart doesn't recognize the name of the ...
4
votes
2answers
244 views

How to keep a graphical application running, even if it crashes?

I use Gnome Do as a launcher for most things. I have it set to run on login and for most of the time it sits in the background waiting for me to mash a keyboard shortcut. About once a week, it falls ...
1
vote
1answer
529 views

How to allow Upstart task to block system boot?

I'm writing an Upstart task which runs at runlevel 1. This is for an ecrypted system, and the task's job is to verify the integrity of the MBR & /boot. As such, it is important that this task ...
3
votes
1answer
1k views

App to restart after suspend|hibernate - defined in Upstart?

I want an app to re-start (XBMC, but I failed with Firefox and Krusader doing this, too), after the PC wakes from suspend or hibernate. I want to write a script, which runs at the same conditions, and ...
3
votes
1answer
1k views

What are the upstart events to monitor to attach/detach an EBS volume and an elastic IP at startup/shutdown?

I'm setting up an Ubuntu instance on Amazon EC2 and I'm trying to configure it so that, at startup, it automatically attaches an EBS volume and takes an elastic IP address and, at shutdown, it ...
1
vote
1answer
2k views

Use Upstart to umount NFS at shutdown/restart?

I want to umount NFS drive at shutdown/restart. I connect to it with my laptop, and due to known bug, the system shuts down for ten minutes, instead for 20 seconds, when the NFS is mounted. I used to ...
11
votes
4answers
8k 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 ...
4
votes
1answer
3k views

upstart pre-stop killed during shutdown

I'm running Ubuntu server, hosting a virtual machine using an upstart job. I've got it launching on startup, and shutting down the host on exit, but I can't seem to get it to suspend when the host ...
1
vote
1answer
553 views

Is there an upstart event for files systems that get mounted manually?

There is the mounted event in upstart, but it is emitted only when the mountall daemon mounts the devices found in /etc/fstab at startup. Are there any events that get emitted, when I mount a device ...
53
votes
2answers
64k views

How do I 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 ...
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? ...
2
votes
2answers
811 views

Using Upstart after building Apache & Mysql from source

I'm using Ubuntu 10.10, Apache 2.2.17 and Mysql 5.5.10. I need some assistance getting Apache and Mysql running on boot. Reading the getting started over at upstart website attempting to get it to ...