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

0
votes
0answers
22 views

What is a service vs a daemon?

I have read answers saying that service is just the same, or that service is the windows equivalent of a unix daemon, but I need a better answer. I am playing around with Upstart. The Upstart ...
2
votes
0answers
11 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
17 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
35 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 ...
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 ...
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

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 ...
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 ...
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
25 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
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 ...
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 ...
0
votes
0answers
57 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. ...
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 ...
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 ...
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 ...
2
votes
1answer
57 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
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 ...
0
votes
1answer
64 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
0answers
79 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 ...
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 ...
0
votes
1answer
50 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 ...
0
votes
1answer
843 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 ...
0
votes
1answer
338 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 ...
1
vote
2answers
66 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
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
45 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

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
20 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
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 ...
0
votes
0answers
290 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
41 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
24 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
35 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
120 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
48 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
29 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
52 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
56 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
36 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
27 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
97 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
120 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 ...