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
0answers
10 views

Prevent service from starting manually when dependent services are down

Suppose I have two services db and app (which needs db to be up and running before it starts). They are starting correctly on startup and when I do sudo service db stop it stops both db and app. But ...
8
votes
2answers
1k views

HOME variable is not set

I have two servers, they're identical (I believe), production and staging servers. And I have upstart script in /etc/init/ folder. description "Discoure process" setuid deploy setgid deploy ...
12
votes
2answers
8k 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 ...
3
votes
0answers
104 views
+50

Default to adm group for upstart logs

This bug suggests that on 12.04, the default permissions for upstart logs do not allow rsyslogd to read them: https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/1074564 That is the logs need to ...
3
votes
1answer
2k views

Synaptics driver doesn't load sometimes

Sometimes (randomly), the synaptics touchpad driver won't load on bootup. When reading /var/log/boot.log, i don't see anything touchpad-driver-like being started when this happens. But the file ...
15
votes
4answers
4k 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
18 views

How to enable user jobs in Upstart

I'm trying to allow non-privileged users to run upstart jobs from their $HOME/.init directory. Upstart cookbook mentions that you must enable this, but doesn't mention how to do it. The frustration ...
24
votes
1answer
12k 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" ...
0
votes
0answers
16 views

etherpad lite on ubuntu 14.04 server

I just installed etherpad-lite on my ubuntu 14.04 server and everything worked fine, I had access to the etherpad on web after startup and could create new pads, add stuff and so on. Just as expected. ...
2
votes
1answer
35 views

How do I run weechat and screen as an upstart service without error?

I want to run weechat constantly in the background so that I can ssh in and reattach to it via screen. I'm trying to accomplish this via the following file in /etc/init/chatscreen.conf: description ...
23
votes
9answers
25k 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 ...
0
votes
1answer
16 views

How to implement in upstart that a service is preventive restarted every x hours?

I have a component --- started with upstart --- with a bug. The bug causes the application to freeze and unfortunately, it does not crush. As a temporary walk-around, I want to force the service to ...
0
votes
1answer
22 views

Can I remove upstart-* from startup

When I startup my computer I have 80+ processes running - just under my name. Of these, I have 4 that match the regex upstart-*: upstart-dbus-bridge upstart-dbus-bridge upstart-file-bridge ...
291
votes
7answers
315k 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
3answers
2k views

“Client Critical Interface eth0/2 is down or doesn't have any link-local address” while starting a service after the network is up

I'm trying to start an upstart job after making sure networking interfaces are up. This is what I have now: start on started network-interface INTERFACE=eth0 stop on runlevel [!2345] pre-start ...
2
votes
4answers
3k views

How to determine status of upstart job in bash script?

How do you determine if an upstart job is running inside of a Bash script? That is I need a "boolean" value to do something like: #!/bin/bash if [ determine_if_job_x_is_running ]; then echo "I see ...
2
votes
1answer
34 views

upstart fail to run service and not able to debug

I am using os-svc-daemon to create my upstart service for openstack project. my upstart job config is as below File : /etc/init/myservice.conf start on runlevel [2345] stop on runlevel [016] env ...
0
votes
0answers
30 views

Enabling systemd in Ubuntu 12.04 lxc container

Following is my setup I am running Ubuntu 12.04.1 Precise. I have and lxc container on it running upstart. I want to replace upstart with systemd. I modified the container's lxc with "virsh -c ...
0
votes
1answer
46 views

start on emit is not working on upstart

I am working to restart service if stopped. I was looking for upstart, to restart service. I found some answers. I took apache2 service for testing. I changed code as below. # File : ...
0
votes
1answer
24 views

start: Unknown job: tester while using upstart feature of ubuntu [closed]

I have a jar file which I am running like this in my Ubuntu 10.10 and then it starts my exhibitor server in the background - nohup java -jar ...
0
votes
1answer
22 views

Is it possible to use services that provide their own pid, like dnsmasq, to use with upstart?

I need badly a better way to refresh dnsmasq configuration than in How to let built-in DHCP assign a static IP to LXC container based on name, not MAC address . I cannot afford restarting all ...
1
vote
1answer
51 views

Kill SSHFS at shutdown? (systemd / upstart)

Apparently having an SSHFS mountpoint active while trying to restart or shutdown Ubuntu can cause the system to hang. I would really like to avoid having to possibly power cycle, due to using an md ...
1
vote
0answers
17 views

Upstart - unable to read /etc/shadow unless sudo

In the following script in Upstart, I'm unable to read /etc/shadow in pre-script phase, unless I use $(echo mypass | sudo -S cat /etc/shadow | grep myusername) The script works fine if I provide my ...
3
votes
3answers
6k views

How do I change the user Transmission runs under?

I installed Transmission through a PPA and the daemon starts on boot. I want to change the user that runs the daemon because I want the downloaded files to be under the same user as my XBMC ...
0
votes
0answers
54 views

Ubuntu 14 Upstart script respawning process after calling service stop

I have an upstart script that works correctly on Ubuntu 10/12. But on Ubuntu 14 when I call sudo service sync_gateway stop The service is automatically re-spawned as though it exited ...
0
votes
1answer
42 views

Upstart - handling stop when the process is killed

I have upstart configuration for my java process: /etc/init/myjar.conf description "my jar" author "me" start on runlevel [2345] stop on shutdown expect fork script chdir /opt/myjar/ java ...
1
vote
0answers
21 views

How to autorun a script as root just after the user's encrypted home directory has become mounted on headless server?

There is a problem with ecryptfs that it heavily limits the maximal filename length. To walkaround it I link most home subfolders to the external encrypted partition. The partition gets mounted just ...
2
votes
2answers
833 views

Ubuntu upstart: Why does restart do the same thing as stop?

This is my upstart file /etc/init/myapp.conf: description "Example of starting Node with Upstart and Forever" start on filesystem or runlevel [2345] stop on runlevel [06] expect fork console ...
0
votes
1answer
121 views

Problem with upstart sessions: unable to granpt:Exec format error

I have a very specific problem. I have installed an arm ubuntu 13.10 on chromebook with original chromebooks linux kernel. And I got the strange errors in ~/.xsession-errors which prevents me to ...
0
votes
1answer
167 views

How to disable mediascanner-service?

I've installed ubuntu-sdk and it depends among others on mediascanner2.0. I generally despise all such scanners/trackers and I'd like to disable it. But I can't find a way. The config is in ...
0
votes
1answer
612 views

Upgrade from 14.04 to 14.10 Failed really bad

I got a popup saying i had updates, and a new release. I clicked on to do the upgrade. Things went ok for a bit, then i started getting popups talking about problems .. like 10 or so, saying i should ...
1
vote
2answers
55 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
20 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
41 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
28 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
20 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 ...
1
vote
2answers
61 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 ...
9
votes
3answers
8k 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 ...
0
votes
0answers
15 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 ...
0
votes
1answer
33 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
192 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] ...
3
votes
3answers
107 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
19 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 ...
4
votes
3answers
2k views

Upstart tracking wrong PID of process - not respawning

I originally asked this question on StackOverflow. Then realised that this is probably a better place. I have bluepill setup to monitor my delayed_job processes. (Ruby On Rails application) Using ...
0
votes
0answers
31 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.
1
vote
2answers
4k views

tftpd-hpa server (timeout from client side) please help

I'm a bit new to version 14.04 of Ubuntu: No LSB modules are available. I am trying to set up a tftp server, mostly for backup up cisco ios configs. I have followed every tutorial I can, and I'm ...
0
votes
0answers
45 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
25 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 ...
62
votes
2answers
42k views

What's the difference between “Service” and “/etc/init.d/”?

I've been managing server installations both on and off Ubuntu flavor for some time - I've become quite adjusted to /etc/init.d/ for restarting servcies. Now I get this message: root@tatooine:~# ...
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 ...