How are services started in Ubuntu 14.04, Upstart, SysV or a combination of both?

6,040

Ubuntu 14.04 uses Upstart only, but Upstart runs SysV init scripts, too. See /etc/init/rc*.conf for the Upstart jobs that are responsible for this.

A lot of Ubuntu packages still use SysV init scripts to minimize the differences to Debian.

Share:
6,040

Related videos on Youtube

the_velour_fog
Author by

the_velour_fog

Updated on September 18, 2022

Comments

  • the_velour_fog
    the_velour_fog over 1 year

    I have these 2 webservers installed on a development machine and because they both bind to port 80 only one can be running at any given time.
    I would like to be able to modify the init startup process so that I can choose which one starts and which one is disabled.
    In order to know what I need to do to effect this, I am trying to work out what is actually controlling the startup of these services.
    My understanding was Ubuntu 14.04 startup scripts were handled by Upstart and that upstart init scripts were in /etc/init.
    But nginx doesn't have a nginx.conf entry in /etc/init it instead has an entry in /etc/init.d - does this then mean Nginx is managed by SysV and not Upstart?
    Does that also mean that by default Ubuntu 14.04 (prior to the move to systemd on 15.04) possibly uses a combination of upstart and initV?
    Or is it that important system processes only are started by Upstart and individual packages like Nginx may choose either upstart or systemV init?

  • the_velour_fog
    the_velour_fog over 8 years
    thanks for the response. So does that mean Upstart is PID1 - and therefore managing the overall process of script executions - some tasks/scripts have been replaced by upstart jobs - some are still initV scripts - and in order to get all the things done - Upstart uses both upstart jobs and runs initV scripts?
  • Christopher B. Adkins
    Christopher B. Adkins over 8 years
    Yes, Upstart is PID 1, and is comes with a few jobs which start and stop SysV init scripts when the runlevel is changed, just like a SysV init would do.
  • the_velour_fog
    the_velour_fog over 8 years
    nice one, its pretty cool to understand more about how Ubuntu gets everything running! thanks.