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

3
votes
0answers
25 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 ...
3
votes
0answers
36 views

Stop job before it's dependencies

I have a job that does some things and uses other locally installed services (such as the mail server). Sometimes I do an ACPI shutdown but I need this service to complete the ongoing operation ...
2
votes
0answers
14 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 ...
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 ...
2
votes
0answers
167 views

Upstart not reopening log files on logrotation

We use upstart to manage our services on our Ubuntu servers. They produce logs which are logged out to /var/log/upstart/SERVICE_NAME.log Then daily, the log files are rotated using the logrotation ...
2
votes
0answers
82 views

Upstart and process substitution

So I want to use the following in my script stanza: forever -l >(tee $QW_LOG_DIR/webserver.log | logger -p user.info -t '[QW]') start webserver.js However, that won't work because: That's bash ...
2
votes
0answers
59 views

Starting a script with a keypress without an X server

I am looking for a way to bind any sequence of keys to an action that will run a script. I need to accomplish this on a Ubuntu 12.10 server which does not have X. I have looked into Upstart however I ...
2
votes
0answers
130 views

Is there an ncurses tool for upstart similar to ntsysv or sysv-rc-conf?

I'd like to be able to use a terminal or console to configure runlevels. I don't need the conditions for starting and stopping services to be any more complicated than sysv. I just want to base ...
2
votes
0answers
253 views

declaring dependencies in upstart

It seems as if the accepted way to specify a dependency of service A on service B in upstart is to work in the reverse dependency direction: give service B a start on starting A stanza. I'd like to ...
2
votes
0answers
285 views

Quickly stop all network services except sshd (or boot with only sshd running)

I have an Ubuntu Server 12.04 box acting as a home file server. At times I would like to be able to brings down all my normal network services (nfs-kernel-server and friends, netatalk, nmbd, smbd, ...
1
vote
0answers
30 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
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
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 ...
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 ...
1
vote
0answers
201 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 ...
1
vote
0answers
127 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
0answers
162 views

How to start xfce4 session inside upstart user session?

I would like to use a upstart user session to run some jobs under user control. My machine has mythbuntu installed which means I have lightdm which starts an xfce4-session. How should I replace my ...
1
vote
0answers
40 views

log files prevent clean root umount

My root fs is always dirty after shutdown. To see why, I added a couple of lines into /etc/init.d/umountroot: /usr/bin/lsof / | /usr/bin/awk '$4 ~ /[0-9].*w/' ... mount -o remount,ro ... /bin/bash ...
1
vote
0answers
683 views

upstart and incompatible sysvinit scripts

When I reboot or try to shutdown I get the following message: Error: Calling a sysvinit script on a system using upstart isn't supported. Please use the 'service' command instead. How do I find ...
1
vote
0answers
316 views

Logging out from Ubuntu takes too long

When I first had only Unity as a desktop manager, I didn't need to log out so I'm not sure if this issue has been around before. I'm say so because It's important to know that I currently have Xfce ...
1
vote
0answers
63 views

Ubuntu 12.04 init won't re-read configuration

I'm running a vnc server under control of init. This is configured using a file under /etc/init. So far, so good. Now I want to make a change to the vnc.conf file, to change some of the command line ...
1
vote
0answers
133 views

How to run a nohup script with upstart?

I'm porting some SysV-style service scripts for HBase (a java service) to upstart. The sysv scripts don't call java directly, but instead call hbase-daemon.sh. This is a start-stop-daemon-like tool ...
1
vote
0answers
175 views

upstart-socket-bridge and python3 example

I'm trying to get upstart-socket-bridge to pass the socket to a Python3 application. Are there any working examples of u-s-b using Python 2 or 3? This example is a test setup only. u-s-b launches ...
1
vote
0answers
228 views

UPSTART services all hang when stopping (stop/waiting)

I am using Ubuntu 13.10 After an IPL, there are many run once services that hang, they are all in STOP/WAITING status. Also, if I try to stop any normal service like apache2, mysql, vsftp I get the ...
1
vote
0answers
199 views

System init daemons do not show even if “initctl” is executed with “sudo.”

I'm using Ubuntu 13.10. Today, It became impossible to control php5-fpm daemon from the shell like the following: $ sudo service php5-fpm start start: Unknown job: php5-fpm After several hours of ...
1
vote
0answers
385 views

Changing a start up init.d script to use with new ubuntu

This is my code. I would like to change it to use with new versions of ubuntu. The thing is ubuntu doesn't have chkconfig any more. Also I heard that new ubuntu uses upstart instead of init type start ...
1
vote
0answers
273 views

Run Mono Application on Startup Ubuntu

I need run a c# Windows Forms application (Mono app) on Ubuntu startup, then I trying use Upstart. I run this application fine manually, but when I use the Upstart script, as follow: description ...
1
vote
0answers
87 views

Why this upstart job is preventing lightdm from shutdown or restart my notebook?

in order to have a permanet ssh tunnel running I set up the following upstart job in /etc/init/ssh-tunnel.conf: # ssh tunnel - simple personal ssh tunnel description "simple personal ssh tunnel" ...
1
vote
0answers
42 views

apport package hook for 3rd-party package not being called

I have a proprietary package, installed via a .deb file. The package provides an upstart script which uses the respawn stanza - i.e. the executable gets restarted when it is killed, even with a ...
1
vote
0answers
232 views

initctl status autofs is stuck on stop/starting

We have an issue with Upstart not restarting the autofs job when the automount process dies, and the Upstart job status gets stuck in the "stop/starting" state. The process is not automatically ...
1
vote
0answers
140 views

How can I inspect Upstart Job States Transitions Using log file?

I want to have a look at the states transitions using the method described here: http://upstart.ubuntu.com/cookbook/#viewing-state-transitions. This is what I do: # initctl log-priority debug # ...
1
vote
0answers
222 views

Strange firefox problems when started by xinit

when I start firefox console via: xinit /usr/bin/firefox firefox is not working properly: html select elements does not work (unable to change default value) after opening local pages (I.e. ...
1
vote
0answers
380 views

upstart hangs on stop

having an issue with upstart where i can start it but when i run sudo stop up it hangs this is the .conf file # my upstart django script # this script will start/stop my django development ...
1
vote
0answers
670 views

Upstart job not running at boot

Hi all I have been trying to figure out my problem for some time and think it is now time to ask someone who know more than me. Hopefully this is only a simple solution for someone in the know ...
1
vote
0answers
215 views

Upstart service stops when I log out

I've written an upstart script I want to run when my server starts up, only it does not. It will run when I call sudo start wiki, where wiki is the name of my service, however it stops running when I ...
0
votes
0answers
4 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
15 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 ...
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 ...
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
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 ...
0
votes
0answers
55 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
0answers
43 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
0answers
76 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
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
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
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
19 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
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
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 ...