upstart Flashcards

1
Q

start and stop services in an asynchronous manner which also decreased the boot up time fora Linux system. This benefit came about
by Upstarts ability to start services in parallel of one another, rather than waiting on one service to start before it could start up the next one.
This flow is the main way that Upstart starts a system. And it may look just as sequential as the old Init system.
However, after the start-up event begins there are multiple other jobs that are running at the same time that we don’t have listed here.

hardly any Linux distributions use it anymore. The focus of looking at Upstart is to demonstrate a type of initialization daemon that made a leap from being a static startup
or shutdown mechanism to one that actually kept track of what was going on with the system and reacting to it.

A

Upstart Init daemon

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

real time events

A

advantage of upstart over init

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

upstart monitors the services that it works with If a service stops working unexpectedly Upstart
will make attempts to get it running again.

A

monitoring

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

fire off the startup event
mountall
startup also runs the /etc/init/rc-sysinit.conf script
rc-sysinit.conf script
telinit
runlevel
/etc/init/rc.conf
login

A

upstart boot sequence

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

that will check and mount the drives that make up the file system using the mountall tool.

A

The startup event

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

checks to see if there is an /etc/init tab file to see if there are any configuration options set there.

A

/etc/init/rc-sysinit.conf script

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

calls telinit to switch into the default run level via the runlevel command.

A

rc-sysinit.conf script

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

start off many other jobs from Upstart to get the system ready and provides a compatibility mechanism to legacy scripts that may require specific run levels.

A

run level command for upstart not the same as init

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

When something on a Linux system changes and when an event is triggered it starts an Upstart
job that is then further divided into task and services.

A

event

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

By executing the joband passing the expected run level, as an argument.

A

/etc/init/rc.conf

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

what is requested of it and then return to a waiting state once it has finished. A service will not typically stop by itself.
The Upstart daemon will monitor each service and it will only kill a service if an event calls for it or if an administrator manually stops it.

A

task

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

condition at a point in time on the system.

A

job state

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

waiting state

A

initial state of a job. It isn’t doing anything yet but is just waiting to do something.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

that the job itself is about to start.

A

starting state

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

means that the job is running.

A

running state

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

The is an interim state where the job has processed a section of its configuration known as prestop.
The job is not actually stopping at this point.

A

stopping state

17
Q

is where the job is actually stopping.

A

killed state

18
Q

the job has completely stopped and once it is done here it goes back into the waiting state.

A

post-stop state

19
Q

occurs when something goes wrong with it while a job is running and it quits unexpectedly and Upstart will attempt to
respond the job up to 10 times at 5 second intervals before the job is dropped entirely.

A

Respawning