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
3answers
3k views

Upstart, one job definition to start and one to stop

Hi i just discoverd ubuntu upstart (etc/init/* scripts). And i would like to use it to run a particular application. This app is run via a command line, but there is an argument to start an instance ...
0
votes
0answers
8 views

Given a user, how to control which services to disable after starting a graphical session?

I am not familiar with upstart, yet. When I start KDE with my own account upstart starts a lot of services as far as I understand. But I have some other users that I let them use openbox because I ...
15
votes
6answers
19k views

Upstart script doesn't start

Ubuntu 10.04 I have created this upstart script (/etc/init/pure-ftpd.conf): # pure-ftpd - FTP server description "Pure-FTPd server" start on filesystem stop on runlevel S respawn respawn limit ...
0
votes
1answer
8 views

Run multiple command in upstart service

I have a directory in my home folder that contains the application that I need to run on startup. Here is the directory structure home/ application/ bin/ startup.sh I run this ...
0
votes
1answer
27 views

Upstart doesn't recognize desktop-unlock event

I created an Upstart job under /etc/init and it is a simple job as: start on desktop-unlock exec <my script> My script is under /usr/bin and is executable. But it seems Upstart only ...
1
vote
1answer
24 views

xbmc upstart scrip delivers no sound

I want xbmc to start on boot, as well as restart when it crashes. Currently, I auto-login to a user ('public') and have xbmc as a startup application. But if xbmc crashes it does not restart, which is ...
0
votes
2answers
18 views

How do I manage session options (sound in my case) when starting program with xinit?

I have tried but failed to find proper information about xinit, in order to understand why it is that when boot into Unity and then start an application (xbmc) all is well, but when I try to use a ...
2
votes
0answers
399 views

“Normal” variables in Upstart [duplicate]

I haven't quite figured out, how to use "normal" bash variables in an Upstart script. Basically, I just want to do this. DAEMON="/usr/bin/redis-server" DAEMON_ARGS="/etc/redis/redis.conf" ...
1
vote
2answers
50 views

How do I convert a sysv-init script to an Upstart job?

I would like to convert the slapd LDAP server init script to an Upstart service. However, I have very little knowledge of SysV init scripts (and the LSB(?) stuff). Specifically, I'm interested in the ...
1
vote
1answer
178 views

Why can't we remove bluetooth service the reguler way?

The usual way to remove services from startup scripts is to remove it from starting up in the first place (man update-rc.d). Meaning removing the symbolic link to /lib/init. In this case executing ...
12
votes
3answers
13k views

Correct way to install a custom upstart service

I am using upstart for services on my servers. Writing a conf file and placing it in /etc/init is easy enough, but that doesn't seem to completely install. For one, the service --status-all doesn't ...
0
votes
2answers
63 views

“Rejected send message, 1 matched rules; type=”method_call“, sender=”:1.5“” while starting MySQL

I have a mysql that has been working fine but now will not start. All I've been able to accomplish is using sudo start mysql which generates the following error: start: Rejected send message, 1 ...
270
votes
7answers
291k views

How to enable or disable services?

I read about how to enable and disable services in Ubuntu and it seems that there are different possibilities to manage them. The first method I found is update-rc.d to add new services to startup, ...
3
votes
1answer
45 views

Can't start upstart

I want to run upstart job. I've created upstart file and put it to /etc/init folder #/etc/init/myjob.conf description "test job" start on runlevel [2345] exec /home/megas/test.sh and then ...
3
votes
2answers
1k views

How can I check if upstart is installed in ubuntu server and how can I install it?

I want to install upstart to my ubuntu server 13.10, but I am confused if I need to download the source or install package. In upstart's getting started page I think they instruct to install the ...
1
vote
1answer
47 views

Export env variables to grandchild jobs

I have a set of upstart scripts, generated by foreman from a Procfile, to start my web service and async task queue worker. The way foreman generates the scripts is as follows: app app-web app-web-1 ...
0
votes
1answer
24 views

How to specify when a daemon should stop during system shutdown?

I have written a FUSE to combine a local and remote file system as one virtual FS. The problem I am seeing is that when the system shuts down (i.e. root issues a reboot), my FS dies before all the ...
1
vote
2answers
323 views

Why isn't one 'bash' command working at startup

I am working on a VM with Lubuntu 14.04, I have created a script a.sh, #!bin/bash echo "aaaa" >> a.txt And my /etc/rc.local file is as follows: #!/bin/sh -e # # rc.local # # This script is ...
1
vote
1answer
29 views

Using upstart for non-daemon tasks

I would like to have foo do-startup-things run on boot, and foo do-shutdown-things run on shutdown where foo is my own program. It looks like Upstart is a good candidate to do this, but Upstart seems ...
5
votes
1answer
374 views

How to specify a daemon shutdown command with upstart?

In an upstart configuration how do I define what command should be used to shutdown a server. Lets say I have daemon that has two seperate processes. startup.sh - to start the server shutdown.sh ...
0
votes
2answers
68 views

upstart multiple parameters

So Im working on a upstart process and wanted to know if I could pass in multiple parameters my-upstart-service restart PARM1=foo PARM2=bar PARM3=hello Here is kinda what I had in mind description ...
1
vote
2answers
142 views

How do I run a script on Unity login/logout?

I have two scripts - one to mount some folders over SSHFS - and one to unmount. I would like to launch the mount script when my default Ubuntu desktop is launched (after I log in at the graphical ...
1
vote
2answers
139 views

Ubuntu 14 Upstart, Script Never Runs — No Log File

I apologize ahead of time if this has been answered, but Ive looked through all the other questions and havent found anything that helps. Here is my upstart script: nodeapps.conf start on [2345] ...
0
votes
0answers
32 views

Upstart Auto restart mysql when it stops

I was searching for a upstart script to auto restart mysql service when it crash since I need to manually use: sudo service mysql restart I'm new to ubuntu and I did not find it after many ...
0
votes
1answer
75 views

Upstart - Start-stop-daemon vs exec

I am writing my first init conf file using upstart. I would like to know what are the advantages of starting my daemon using start-stop-daemon. Why is it better then just: exec /path/to/my/daemon ...
0
votes
2answers
466 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 ...
11
votes
2answers
499 views

What does init on Ubuntu do?

I already know that init is the magical program that is needed for booting your computer and managing runlevels, but what is it's real purpose? Why do we even need init in the first place? Why can't ...
0
votes
0answers
16 views

Upstart: wait for webping

I'm using upstart to start my server, but I would like the start process to wait for the localhost:port/webping to be available (200 OK) before considering the startup successful, so the automatic ...
0
votes
0answers
22 views

Why `initctl status tty1` gets `Unknown job: tty1`

# initctl status tty1 initctl: Unknown job: tty1 But there is a tty1.conf file in /etc/init and I haven't modified it: # cat /etc/init/tty1.conf # tty1 - getty # # This service maintains a getty on ...
1
vote
0answers
70 views

Start jackd with realtime priority with upstart

I'm trying to start jackd with realtime priority at boot with an uptstart script but with no success so far. I'm using ubuntu server 14.04. My upstart version is 1.12.1. The user and group I'm using ...
0
votes
0answers
43 views

Upstart script on first boot with cloud-init

I'm trying to launch an EC2 instance where I need to perform some initial setup of the instance (download and install packages, configure directories, etc.) as well as start a web service. The initial ...
2
votes
1answer
76 views

systemd in ubuntu 14.04

I noticed that the most recent update of ubuntu offers to install systemd components. I hesitate to allow this update for I had very nasty experience of doing this in debian-testing when services ...
0
votes
0answers
33 views

after do-dist-upgrade i have some problems on my xubuntu

Hello guys some weeks ago i did an do-dist-upgrade a virtualbox machine, and now i cant login correctly without getting stuck on logs screens, worst with reboot and shutdown ever get stuck on logs ...
2
votes
1answer
962 views

Why are there start 'S' symlinks in rc0.d (shutdown) and rc6.d (reboot)?

Start 'S' symlinks in shutdown and restart runlevels? Why are there 'S00-S99' start symlinks in rc0.d and rc6.d? Ubuntu 13.04 directory listing: $ ls -l /etc/init.d/rc6.d lrwxrwxrwx 1 root root ...
1
vote
2answers
499 views

Purpose of “postrotate invoke-rc.d rsyslog rotate” when logrotating, and is this command outdated?

When using logrotate to keep log files rotating, I have seen postrotate invoke-rc.d rsyslog rotate > /dev/null endscript I know postrotate makes bash execute the following ...
0
votes
2answers
44 views

Gamma correction with Upstart and a script

I've written an Upstart job to automatically change display gamma according to change in display brightness: start on (backlight-device-changed) exec /usr/bin/gammach And this is "gammach": ...
1
vote
2answers
88 views

Which init daemon starts cups?

I have a fresh installation of Ubuntu 14.04, and have not touched anything. Cups is running, as reported by both ps and netstat. There are /etc/init/cups.conf and /etc/init.d/cups, both of them seem ...
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 ...
0
votes
1answer
86 views

upstart and gnome-session-Unity.log goes mad

In my upstart folder in ~/.cache/upstart: -rw-r----- 1 bussiere bussiere 18G août 5 17:59 gnome-session-Unity.log The log goes mad I've tried purge logrotate and reinstall it but nope.
2
votes
3answers
1k views

Debugging the execution order of Upstart jobs

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?
2
votes
2answers
258 views

How to start GUI application with upstart?

I have struggled with this problem for three days and I have tried many ways to solve it but not successful yet. I hope you guys can help me... I have an GUI application. I want to start this ...
1
vote
1answer
29 views

Can't get upstart service to honor capabilities(7)

I am developing a daemon started by upstart (Ubuntu 14.04) which needs to run as a non-privileged user (for security), but bind privileged port 443. I am using setcap to set the CAP_NET_BIND_SERVICE ...
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 ...
-1
votes
1answer
34 views

Are there any plans to simplify console service management on Ubuntu?

I am quite perplexed about the direction in which service management is going on Ubuntu and the funny part is that the same seems to be happening with OS X but that's another story. I do appreciate ...
0
votes
1answer
73 views

passing port to calibre-server via env variable in upstart script

I'm trying to write an upstart script for calibre-server. I can add all the arguments I need using env variables except for --port. description "Calibre (ebook manager) content server" start on ...
0
votes
1answer
17 views

When will “runlevel” event be emitted?

start on runlevel [2345] referring this: The syntax of start on stanza is: start on EVENT [[KEY=]VALUE]... [and|or...] It means, runlevel is en event, [2345] is that event's environment ...
1
vote
1answer
51 views

Securing shared memory in Ubuntu (Linode VPS) renders it useless. Doesn't boot up [duplicate]

Everytime I setup a new VPS, I secure shared memory by adding the following to /etc/fstab: tmpfs /dev/shm tmpfs defaults,noexec,nosuid 0 0 Which works as expected on every host, ...
0
votes
1answer
23 views

Minecraft Bukkit server spams logfile - Ubuntu 12.04

I have a virtual server (Ubuntu 12.04) and a serious problem with Minecraft/Bukkit. I've installed a fresh bukkit 1.6.4 on my virtual server and made some upstart script for it. Here is the ...
1
vote
1answer
76 views

How to force restart of a dependent service in upstart?

I have an upstart file for running a docker container: description "Start a worker" start on filesystem and started docker stop on stopping docker respawn script /usr/bin/docker start -a my_worker ...
22
votes
9answers
24k 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 ...