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
7 views

PXE boot 14.04 : filesystem.dir not working: do I have to use filesystem.squashfs?

I've been using PXE-Boot with an extracted filesystem rather than squashfs so far: [NFS-server]:/[cdpath]/casper/filesystem.dir/ instead of[NFS-server]:/[cdpath]/casper/filesystem.squashfs This ...
0
votes
0answers
16 views

Ubuntu 12.04 in login loop as lightdm-session says upstart not found

I tried to install a package systemd (this replaces upstart in Utopic 14.10 and up). See my yesterday question How to Re Generate All Gnome Schemas for Ubuntu 12.04. The result was that it didn't ...
2
votes
0answers
15 views

Ubuntu 14.04 boot hangs at logo after updating

Yesterday, I did a update/dist-upgrade. Today, I powered on the machine and it was hanging at the loading screen with logo and cycling dots - I've waited at this screen for about an hour several times ...
3
votes
0answers
26 views

What service starts a user session before they login?

I've noticed that I have problems with insync and dropbox icons showing up in my system tray and in investigating the problem it seems to be because they are being started before I even login. In ...
1
vote
1answer
245 views

Startup script for spawn-fcgi

I would like to use spawn-fcgi to start a web.py application on system boot. Is there any facility for managing spawn-fcgi through Upstart? (Is Upstart the modern system for managing services, or ...
0
votes
0answers
10 views

Having Cisco AnyConnect connect to VPN server at startup on a headless machine

Currently I launch it manually using the following command: printf "y\nMYUSERID\nMYPASSWORD\ny" | /opt/cisco/anyconnect/bin/vpn -s connect VPNSERVERADDRESS I tried putting the same command in ...
1
vote
0answers
31 views

Running service spacenavd start not same as /etc/init.d/spacenavd start

I have an application which makes use of a 3dconnexion space mouse. It works fine when using the spacenavd daemon however I'm having issues getting the daemon to run at boot or as a service. $ sudo ...
2
votes
0answers
42 views

Bash script works from command line, but not if started by upstart

I have a script that listens on port 12 and invokes xbmc when receiving a wol packet. It works perfectly fine when I launch the script directly from the command line, but nothing happens when I let ...
1
vote
0answers
31 views

Is there an alternative to using “sleep 1” in Upstart pre-start script? [closed]

I am running a rails app on Ubuntu 12.04 I was having difficulty getting the service to start on boot. The only thing that solved this issue was to add a "sleep 1" to my pre-start script. I am ...
3
votes
1answer
117 views

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

Pure-FTPd with virtual users

I recently setup a pure-ftpd server, and I'm wondering about how I would include virtual users within the service. I would normally have to run the program with -l puredb:/etc/pureftpd.pdb. How would ...
0
votes
1answer
19 views

How do I find out what version of upstart I have?

I'm trying to figure out if I should use User Jobs or Session Jobs, since Session Jobs are the proper way to do things from upstart 1.7 onward. I'm running Ubuntu 14.04. How do I find out what ...
0
votes
0answers
24 views

How to run job with access to ssh passphrase

I have a long-running daemon (unison file monitor) that I want to have running at all times. This daemon connects to a remote server through ssh and maintains a local directory synced with a remote ...
1
vote
2answers
42 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 ...
1
vote
0answers
13 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 ...
4
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 ...
25
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
56 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
47 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
26k 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
20 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
25 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 ...
294
votes
7answers
324k 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
56 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
44 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
62 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
30 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
27 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
60 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
20 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
77 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
49 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
28 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
867 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
139 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
330 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
835 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
65 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
25 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
44 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
36 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
28 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
63 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 ...