Questions tagged [upstart]

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.

Upstart was created due to fundamental limitations in existing systems. Those systems can be categorized into two types:

  • System V init system
  • Dependency-based init systems

It was necessary to outline the limitations of the SysV and dependency-based init systems to appreciate why Upstart is special...

Upstart is revolutionary as it recognises and was designed specifically for a dynamic system. It handles asynchronicity by emitting events. This too is revolutionary.

Upstart emits "events" which services can register an interest in. When an event -- or combination of events -- is emitted that satisfies some service's requirements, Upstart will automatically start or stop that service. If multiple jobs have the same "start on" condition, Upstart will start those jobs ''in parallel''. To be manifest: Upstart handles starting the "dependent" services itself - this is not handled by the service file itself as it is with dependency-based systems.

Further, Upstart is being guided by the ultimate arbiter of hardware devices: the kernel.

In essence, Upstart is an event engine: it creates events, handles the consequences of those events being emitted and starts and stops processes as required. Like the best Unix software, it does this job very well. It is efficient, fast, flexible and reliable. It makes use of "helper" daemons (such as the upstart-udev-bridge and the upstart-socket-bridge) to inject new types of events into the system and react to these events. This design is sensible and clean: the init system itself must not be compromised since if it fails, the kernel panics. Therefore, any functionality which is not considered "core" functionality is farmed out to other daemons.

See more at The Upstart cookbook

284 questions
4
votes
2 answers

High CPU usage with wineconsole running in background

I have a (pretty simple) Windows console application which I want to run on a Linux server using Wine. When I just run it from the terminal over SSH like wine myapp.exe everything works great. It runs fine, does everything it should and CPU usage…
Spc_555
  • 223
  • 4
  • 11
4
votes
1 answer

Simple upstart script for nodejs + forever on Ubuntu

I'm using Ubuntu Sever 12.04. I have a nodejs application which I want to run like so: NODE_ENV=production PORT=3001 APP_PATH=/var/www/myapp forever -a -l /var/www/myapp/forever.log -o /var/www/myapp/out.log -e /var/www/myapp/err.log…
Svilen
  • 91
  • 1
  • 5
4
votes
1 answer

Upstart restart command doesn't load new updated job config (solr)

Here my upstart config for solr which is located under /etc/init/solr.conf # /etc/init/solr.conf description "Starts Solr server" respawn start on startup solr_push script echo "Starting solr server..." cd…
gansbrest
  • 835
  • 2
  • 9
  • 17
4
votes
1 answer

Why is upstart eating all of my RAM?

I'm running Ubuntu Server 12.04 LTS in EC2. I have several node.js daemons running as services under upstart, along with the usual init stuff. After every deploy, during which all the node.js daemons restart, the "init" process starts growing at…
wolak
  • 149
  • 3
4
votes
0 answers

Monit will not start my node js app

I have a problem with Monit that I use for monitoring of my Node.js app. I just moved from a single core machine to a multi core one. On both of them I run Ubuntu 11.10. On the old one this was working. This script below uses a upstart script that I…
Buzz
  • 41
  • 1
4
votes
1 answer

How to install init-checkconf for upstart?

Upstart is installed, but init-checkconf is not. Any ideas how to get both? $ sudo init-checkconf sudo: init-checkconf: command not found $ sudo dpkg --get-selections | grep upstart upstart install $ uname -a Linux VM1…
Allyl Isocyanate
  • 299
  • 1
  • 4
  • 9
4
votes
1 answer

Writing an upstart config file for Unicorn

I've had a good hunt and can't find a good example of an upstart script for Unicorn. From what I've read however I think that upstart and unicorn might step on each others toes if I just try to set up a basic upstart config file given that unicorn…
Brendon Muir
  • 243
  • 1
  • 6
4
votes
2 answers

upstart pre-stop script

I have libvirt/KVM set up on my Ubuntu and before shutting down the machine I would like it to attempt shutting down the VM's using an ACPI poweroff (virsh shutdown), then I want it to stop shutdown for at least 60 seconds to give the VM's a chance…
X-Istence
  • 752
  • 1
  • 8
  • 18
4
votes
2 answers

Ubuntu Upstart Error

I'm running Ubuntu 10.04 LTS and attempting to run services via start,stop, status and I get the corresponding error below. I've googled around but everything is like 2-3 years old and unanswered. status: Unable to connect to system bus: Failed to…
Robert
  • 267
  • 2
  • 7
3
votes
0 answers

Should I use systemd or docker-compose to keep Docker containers running on my systems?

We are talking about Docker containers as sysdig, consul, fluentd, mesos-slave, etc. that we are running on almost all machines. Currently we are using Ubuntu's Upstart and CoreOS's Fleetctl. We're migrating to Ubuntu 18.04 LTS and currently…
ujjain
  • 3,983
  • 16
  • 53
  • 91
3
votes
1 answer

Systemd not working after Ubuntu 14.04. to 16.04. upgrade

I just did the above mentioned upgrade but it seems like systemd is not working as it should. If I run a command like systemctl start apache2 I get the message Failed to connect to bus: No such file or directory Oddly service apache2 start is…
Polrov
  • 41
  • 1
  • 1
  • 3
3
votes
0 answers

uWSGI won't start via Upstart, but starts ok from the console

I'm trying to make uWSGI run on boot using Upstart on a Vagrant box. So I've created /etc/init/uwsgi.conf with the following contents: # simple uWSGI script description "uwsgi tiny instance" start on runlevel [2345] stop on runlevel [06] …
Eugene Yarmash
  • 2,433
  • 5
  • 34
  • 54
3
votes
1 answer

Debian Jessie UpStart / Systemd / SysV no more reboot

I have make some test on a Jessie server with Upstart installation and replace it by SysV and the reverse. After this I'm not anymore able to reboot. root@amoo-001:~# reboot Failed to talk to init daemon. root@amoo-001:~# systemctl reboot Failed to…
frbayart
  • 327
  • 2
  • 8
3
votes
2 answers

How to respawn a script in RHEL/Centos6 when /etc/inittab has been deprecated?

I have a custom init script and I want that script to be respawned if in case the process dies. In RHEL/Centos 6 /etc/inittab is deprecated. So how should I ensure the process will be respawned?
Shashank
  • 31
  • 1
  • 2
3
votes
1 answer

Properly ordering shutdown of MySQL and iSCSI on Ubuntu Lucid

I'm running MySQL on an Ubuntu 10.04 server, with the MySQL $datadir located on an iSCSI volume. The filesystem is tagged with "_netdev" in /etc/fstab. On system shutdown, upstart sends MySQL a SIGTERM, then moves on to shutting down the network…
Insyte
  • 9,394
  • 3
  • 28
  • 45