1

In Ubuntu, what folders or files are used to hold service files that can start at boot time. I know for example /etc/init.d is one folder which holds several service files. /etc/rc.local is a file that can also boot some services, but what others are there?

1 Answer 1

2

According to upstart cookbook.

Ubuntu currently employs a hybrid system where core services are handled by 
Upstart, but additional services can be run in the legacy SystemV mode.

All upstart system jobs by default live in /etc/init/ while session job can be found in:

  • $XDG_CONFIG_HOME/upstart/ (or $HOME/.config/upstart/ if $XDG_CONFIG_HOME not set).
  • $HOME/.init/ (deprecated - supported for legacy User Jobs).
  • $XDG_CONFIG_DIRS
  • /usr/share/upstart/sessions/

Session Jobs are managed by the users own Session Init.

SystemV service init script are in /etc/init.d/ and in /etc/rcX.d are present symbolic link to enabled service. /etc/rc.local file is executed as last service at the end of each multiuser runlevel.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .