SM1:
Open-source Operating Systems
|
ASIX/DAW/DAM-1
|
Task A10: Services
management. Basic power management,
|
6-1-25
|
Task
A10: Services management. Basic power management.
GENERAL CONDITIONS
1- Deadline: 19-1-2025.
2- Send your report as a PDF file attached to an e-mail with the following
specifications:
a) E-mail
address:
cf(at)collados.org or jordi.binefa(at)fje.edu depending on who is your
teacher
b)
File Names:
b.1) ASIX1:
asix1_surname_name_sm1act10.odt
asix1_surname_name_sm1act10.pdf
b2.) DAW1:
daw1_surname_name_sm1act10.odt
daw1_surname_name_sm1act10.pdf
c) Subject:
c.1) ASIX1:
asix1_surname_name_sm1act10
c.2) DAW1:
daw1_surname_name_sm1act10
3- Make this report individually.
4- Left, right, top and bottom margins: 2cm.
5- Character
format: a) Font: Arial, b) Size: 10, c)
Questions typeface: Bold, d) Answers typeface: Regular(Blue/Red).
6- Please note that if you submit
your report:
- Later than the deadline, 2 points will be deducted to
your final mark
- With a wrong ODT filename, 2 points
will be deducted to your final mark
- With a wrong PDF
filename, 2 points will be
deducted to your final mark
-
With a wrong ODT format, 2
points will be deducted to your final mark
- With a wrong PDF
format, 2
points will be deducted to
your final mark
-
With a wrong
Subject, 2
points will be
deducted to
your final
mark
- Where
Questions
are not
written in
Bold
(black)
and answers
in
Regular (Red/Blue),
3
points will be
deducted to
your final
mark.
- Where
Screenshots
and answers were not properly added after each question, 3
points will be
deducted to
your final
mark.
-
With your
files
unproperly
attached or
not readable,
your report
will get 0
points.
1-
What is a server (or daemon)?
a) A server (or daemon)
is a process that provides services to other computer
programs, the clients, running in the same
computer or in other computers connected through the network.
b) A service provides some functionality to
clients such as access to files stored in a remote computer,
access to web pages, access to databases, send or receive mails,
run commands in remote computers, store files in remote
computers, print documents on local and remote printers and so
on.
c) Main features of a server:
- Its usual state is interruptible
sleeping (S).
- It changes to running state
(R) e when it receives a request from a client
and upon fulfilling the task requested by the client goes
back to the interruptible sleeping state (S).
- It runs in the background.
- It is an orphan
process or a process started by init.
- Most of the time
(but not always) a server starts during the system
startup (or boot) process and it is terminated
during the system shutdown process.
-
It runs in the user space memory area.
- Usually, It is owned by the root
user but sometimes is owned by a system
user. A system user is not real
people but they have a UID, a name. permissions and so on.
-Typical nice value for most
servers is 0 (normal priority)
d) Servers are processes so root (and sometime
some users) can:
- Send signals to servers with kill
or killall
- Change nice value with nice
or renice
- Show servers with the help of ps
or top
- Send signals, change nice values
or show server with MATE Monitor System.
e) Servers are processes so they
need:
- % CPU time
- % RAM memory
- Access to resources such as hard
drive, network, printer, files,.....
f)
Linux provides to the system administrator with a set of tools
(commands) to easily:
- Start a server in the proper way
- Send a signal to terminate a server
- Send the signal SIGHUP to a server
- Configure Linux to start (or not) a
server during the boot process
g) Remember:
- start a service means that
the server process starts to run on the system. So, a new
process is created on the system.
- stop a service mean that the
current server process will be terminated (ended). So, the
server process will not exist on the system any longer.
- restart a service mean that the
current server process is terminated and a new server
process is started. So, the server process PID changes because,
in fact, you are starting a new process.
h)
Typical information about a service shown by the
service management commands:
-
loaded,
active,
running
-> The
service works
fine. The
server program
is running and
currently
providing a
service.
- loaded,
inactive, dead
-> The
service was
stopped. The
server program
was terminated
and it is not
providing the
service.
-