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

Unknown Job Issue: Ubuntu Upstart Conf though syntax is ok

I am trying to run Apache Solr 4.10.4 as service in Ubuntu 14.04. I have written the following upstart conf file : sudo vim /etc/init/my-solr-job.conf # my-solr - Search Backend Engine description "my solr search engine" start on runlevel…
Pankaj Goyal
  • 131
  • 3
0
votes
0 answers

Keep Service Running with Upstart

I am trying to use upstart to keep a service running: rabbitmq-server. I have written an upstart configuration file in /etc/init/rabbitmq.conf 1 2 start on runlevel [2345] 3 stop on runlevel [016] 4 5 respawn 6 exec…
John Foley
  • 171
  • 7
0
votes
1 answer

Proper way to get process to turn on after reboot on AWS-AMI linux

I'm trying to make sure my queue system does not fail when the server gets rebooted. The PHP processed queue system is started up via a command line command. The Laravel documentation suggests installing a process monitor called supervisord, which…
zeros-and-ones
  • 315
  • 1
  • 3
  • 10
0
votes
1 answer

Does upstart have a built in way to respawn a process that is not stopped using initctl stop in specific intervals?

We thought the following directives would try to respawn the process 10 times in 60 seconds (i.e. once every 6 seconds): respawn respawn limit 10 60 However these directives restart the process as soon as it is crashed. So it might actually respawn…
0
votes
2 answers

how to execute a script Rhel 7 at booting time?

I am trying to execute a shell script on RHEL7.1 when the machine starts. As in ubuntu, Upstart scripts (in /etc/init/) are used to execute any scripts or to start any services at boot time, is there anything equivalent in RHEL 7.1 to upstart?
user3460393
  • 21
  • 3
  • 6
0
votes
1 answer

Which ssh starup script is invoked by ubuntu?

I am trying to run two sshd processes, one for admin and one for sftp. Ubuntu 14.04 on digital ocean has both upstart in '/etc/init/ssh' and init.d in '/etc/init.d/ssh`. Is this just digitalocean or all 14.04? Which one launches sshd? And which…
Jonathan
  • 193
  • 1
  • 7
0
votes
1 answer

How to kill a respawn service on ubuntu 14.04 LTS

I want to kill a respawn service by using upstart. when I use "htop" command to monitor system,I observe a process "/123.lock". when I kill it via "kill" command,it restart again. how could I kill it via upstart to kill this process totally? best…
0
votes
2 answers

sidekiq on ubuntu failed to stop with upstart

I installed an upstart service for sidekiq exactly as specified in it's wiki. That said, I have an upstart script that creates a process with: # skipped other insstructions script exec /bin/bash <<'EOT' source /home/me/.my_env cd /home/me exec…
0
votes
1 answer

Pppd upstart script

I am creating an upstart conf to manage different VPN connections. The problem is that if the pppd daemon dies, initctl still think it is start/running. This is my current vpn.conf description "VPN clients" instance $vpn export vpn pppd call $vpn…
Tk421
  • 230
  • 1
  • 8
0
votes
1 answer

Upstart script runs well with sudo but fails as root user

I have a simple nodeJs upstart service run as, script exec /usr/bin/node /path/to/server.js end script On running with sudo command, it works ~$ sudo service upserv start sg_gui_server start/running, process 19321 When it is ran as a root user,…
Saravana Kumar
  • 169
  • 1
  • 1
  • 6
0
votes
1 answer

Upstart script doesn't work on boot - only manually

I followed this tutorial on setting up Flask with nginx + uwsgi. I created an upstart script at /etc/init/flask-uwsgi.conf: start on [2345] stop on [06] pre-start script mkdir -p /var/run/flask-uwsgi chown www-data:www-data…
okoboko
  • 101
  • 1
0
votes
1 answer

upstart CentOS vs upstart Ubuntu is there any difference between them?

I'm moving some server configurations from Ubuntu Server 12.04 to CentOS 6.6. Now I'm working on /etc/init script that should be handled by upstart at both OS as far as I know. The files on both server are the same and I mean the same at content…
ReynierPM
  • 710
  • 5
  • 14
  • 30
0
votes
1 answer

ubuntu upstart never killing my process

I have a simple bash script: echo "Starting" function sigint { echo "sigint" } function sigterm { echo "sigterm" } trap sigterm SIGTERM trap sigint SIGINT while true do sleep 2 echo "-" done I launch this script with upstart using this…
rmonjo
  • 231
  • 2
  • 4
  • 12
0
votes
1 answer

Upstart service was running, stopped and will no longer run

I feel sure that someone, somewhere changed something on the server but I cannot identify what occurred. Keep in mind the service was working perfectly prior to the beginning of this week. (NOTE: this is specific to one server as this same service…
0
votes
1 answer

Upstart service is not killing processes on stop

I have an upstart service that maintains a number of instances of workers. pm-all-workers.conf: start on runlevel [2345] stop on runlevel [!2345] env NUM_WORKERS=25 pre-start script for i in `seq 1 $NUM_WORKERS` do start pm-worker N=$i …
nhaldimann
  • 101
  • 3