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
0
votes
1 answer

How can I use upstart with vendor-supplied startup programs?

For instance, I use the following commands to start and stop a particular web application: /usr/local/application/MyServiceController.sh all.start /usr/local/application/MyServiceController.sh all.stop These commands perform some setup tasks and…
Matthew
  • 156
  • 3
0
votes
1 answer

Linux Upstart processes automatically restart

I'm using Upstart on an ubuntu server to manage some server processes I have running. My problem is that if I "stop " a couple of times, the process dies but then automatically starts running again. I need it to actually stop permanently when issued…
Geuis
  • 625
  • 3
  • 8
  • 17
0
votes
1 answer

Error while setting a run level for a service on ubuntu 10.04

I had stopped openvpn from loading at boot by doing this: sudo chkconfig openvpn off Now I want it to load at boot up. So I did this: sudo chkconfig openvpn on But it fails and the error I get is: the service might have been converted to upstart…
nixnotwin
  • 1,513
  • 5
  • 34
  • 54
0
votes
1 answer

What happens when an upstart limit is breached?

For example can I set a limit on VIRT or RES and have upstart restart the server? Thanks Chris
Chris McCauley
  • 552
  • 1
  • 5
  • 15
0
votes
1 answer

Script fails when run from cron

I have some embedded machines which are on an unreliable connection which network manager unfortunately isn't handling well. Currently I need to check for connectivity and then restart network manager if we're not connected, as that will in most…
Daenyth
  • 243
  • 1
  • 7
0
votes
1 answer

Zend Server + Daemontools

Is anyone running Zend Server under Daemontools? I know I can use -D NO_DETACH to run apache under daemontools. But, I'm not sure if the other Zend Server components (monitor, lighthttpd, scd, jobqueue) have similar options. (The end goal is "run…
Ben Williams
  • 739
  • 1
  • 7
  • 17
0
votes
1 answer

Ubuntu Server not rebooting but will power off

I have 2 identical servers running Ubuntu 9.10 and I've been playing with Ubuntu's upstart system, trying to write a sort-of complex boot order for a few services. I've also played with init scripts to try and achieve the required effect, but I've…
Andy Shellam
  • 1,828
  • 1
  • 12
  • 16
0
votes
1 answer

RemainAfterExit in Upstart

Is there an Upstart equivalent to systemd's RemainAfterExit? I have an upstart task that exec's a script that completes quickly when the task is started. However, I would still like that task to report as active so that I can subsequently 'stop' the…
0
votes
1 answer

How to create a systemd "start all" template unit file from an upstart script with multiple services?

I'm in the process of migrating all custom upstart scripts to systemd. I've come across a script that utilizes multiple services. I cannot figure out the proper syntax to handle this, or if I need to just create separate .service unit files for…
DevOpsSauce
  • 288
  • 4
  • 13
-1
votes
1 answer

systemd script for starting my app server as soon as it is down or system is rebooted

I have a upstart configuration file as shown below which works fine in Ubuntu 14: #/etc/init/data_server.conf #sudo start data_server #sudo stop data_server #sudo status data_server start on runlevel [2345] stop on runlevel [016] chdir…
user1950349
  • 223
  • 1
  • 3
  • 10
-1
votes
1 answer

Where are smbd system links in UBUNTU 12.04?

After installing Samba on UBUNTU 12.04, I checked the system link run level directories and were not able to find smbd links. This is interesting because smbd is started automatically on reboot. Here is the ls of my rc directories: secadmin@SAM:~$…
alibaba
  • 417
  • 1
  • 5
  • 13
-1
votes
1 answer

How to manually remove php from init

I tried to remove php5-fpm from init (aka upstart) on my Lubuntu OS with the command: sudo update-rc.d -f php5-fpm remove but the symlink is still in /etc/init.d/; indeed php is started at boot. What could have caused this issue, and how can I…
Marco Sulla
  • 207
  • 2
  • 4
  • 15
-1
votes
1 answer

Python script stops responding when run for a long time

I am running a python script as a service in Ubuntu 11.10(using upstart for that). When started, the script runs fine and responds as expected. But after the script is running in background for long lets say 12 hours or so without any activity(user…
bugs99
  • 15
  • 1
  • 8
-5
votes
1 answer

init system vs configuration management

Best practice: What tasks would you give to an init system like systemd vs a configuration management system like ansible? What I like about starting up services with a CM is portability across different Linuxes but I don't think a CM is as robust…
1 2 3
18
19