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
2answers
31 views

Why does my script work when started from console but does not work when started via upstart?

I am running Ubuntu 12.04. Here is what I am trying to do: I copied and adapted a shell script from here: http://yatse.leetzone.org/redmine/boards/2/topics/2088. It listens to UDP port 9 for ...
0
votes
0answers
13 views

How to clean upstart service status files?

I was experimenting with my upstart service while was getting service hang etc. Now it seems to me that service never goes well even with previously good configs. Can it be so? I suspect this is ...
0
votes
0answers
14 views

Making one Upstart script see environment variables of another

I have a server that starts with Upstart: /etc/init/server.conf description "Server" start on runlevel [2345] stop on runlevel [!2345] respawn exec /opt/myserver/runmyserver.sh To ...
0
votes
0answers
31 views

How to create correct upstart script for vnc4server which can stop it?

vnc4server is a script to both run and stop VNC server. It itself exits when work done, leaving server working in background. If I set service with the following config start on (local-filesystems ...
0
votes
0answers
10 views

How to make upstart service script running under root?

To make upstart service, I do the following, which I don't know is correct: 1) creating SERVICE.conf file in /etc/init 2) creating symlink to /lib/init/upstart-job with the name of the service in ...
0
votes
0answers
10 views

How do I start an ncurses program in a screen session as a specific user at boot and grap a virtual terminal

I want to start a ncurses program at boot that will display on the screen at boot, but within screen so that I can ssh into the machine remotely and see what is being displayed. The program and the ...
1
vote
2answers
50 views

Disable touchpad at login screen

EDIT (revision 4) According to this ubuntuforums.org post, upstart cookbook and CameronNemo's answer, I tried to change the first line with start on login-session-start and I moved the conf file ...
0
votes
0answers
67 views

Ubuntu 14.04: plymouth-upstart-bridge terminates during boot

In Ubuntu 14.04.1 with 3.13.0-37-generic kernel, I get this message while booting up (few previous messages added for context too): [ 4.951362] sr 1:0:0:0: Attached scsi CD-ROM sr0 [ 4.951519] ...
0
votes
1answer
24 views

Reconfigure system (network) during boot based on HyperV information

I am running a HyperV environment with Ubuntu 14.04 server running in generation 1 guests setups. It runs nicely. I want to be able to clone the system (while shut down), give it a new name, and ...
0
votes
0answers
13 views

Forced reboot stopping in grub on HyperV

On 14.04, running on HyperV (Windows 8.1, deploy planned for 2008R2). For a complicated reason, I need to occasionally force a second reboot while the system is booting (I will also post a question ...
0
votes
0answers
27 views

Upstart: how to set init-wide environment?

How to define environment variable for /sbin/init process? So that it will be inherited by all processes in system.
3
votes
3answers
82 views

How do I create a single-execution Upstart job guaranteed to complete before two other jobs begin?

How does one write an Upstart task that is guaranteed to run only once after each startup but is also guaranteed to run to completion before either one of at least two other jobs start running. I do ...
0
votes
0answers
36 views

Upstart configuration for (possibly) multiple levels of fork

I need to start a loader process at system start-up which will look around to determine if it is being ask to accept an update, and if not fork a server process which will normally run forever and ...
0
votes
1answer
19 views

Unexpected interruption in Ubuntu starup file

I got a problem with the upstart files of Ubuntu in /etc/init/. I am trying to run a process if it does not already exist. So I wrote a conf file and start with "start" The following two files are ...
0
votes
0answers
23 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 ...
0
votes
1answer
21 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
33 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 ...
0
votes
2answers
21 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 ...
1
vote
1answer
39 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 ...
1
vote
2answers
74 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 ...
0
votes
2answers
292 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 ...
1
vote
2answers
347 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 ...
0
votes
1answer
25 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
1answer
33 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 ...
0
votes
2answers
117 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
215 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 ...
0
votes
0answers
40 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
168 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 ...
1
vote
1answer
73 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
0answers
19 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 ...
11
votes
2answers
509 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
25 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
121 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
103 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
102 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
38 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 ...
0
votes
2answers
58 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
151 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
2answers
340 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 ...
0
votes
1answer
126 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.
1
vote
1answer
33 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 ...
0
votes
1answer
100 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
20 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
votes
1answer
38 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
28 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
0answers
92 views

What is the Purpose of /etc/init/udev-fallback-graphics.conf in Ubuntu 14.04?

What is the purpose of the upstart configuration /etc/init/udev-fallback-graphics.conf (shown below) in Ubuntu 14.04 LTS? # fallback-graphics - take actions to initiate fallback graphics # # if we ...
1
vote
1answer
104 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 ...
2
votes
1answer
173 views

Upstart job cannot create directory in /var/run

I the following config in /etc/init/foo.conf on Ubuntu 12.04.4: description "Foo" start on filesystem or runlevel [2345] stop on runlevel [!2345] pre-start script mkdir -p -m 0775 /var/run/foo ...
0
votes
1answer
546 views

How Can I Suppress “Load Fallback Graphics Devices” and “Plymouth Upstart Bridge” Messages During Ubuntu Server 14.04 Boot-Up?

When booting Ubuntu Server 14.04 LTS, I see messages such as: * Starting load fallback graphics devices [FAIL] and init: plymouth-upstart-bridge main process terminated with status 1 and init: ...
0
votes
3answers
236 views

How to run a Phantomjs server with an upstart script?

I have phantomjs installed and I want to run a phantom server whenever the (Ubuntu) server starts. I am currently working locally on Ubuntu 14.04, and the server this will be deployed to is also ...