how services and programs works at back-end ?
hi..
what happens when we restart , stop or check status for any daemons/programs or do some changes to configuration file. For example when we do services network restart. what happen at backend which scripts it reads. like when we create user so it refers to /etc/login.defs and /etc/passwd is there any website where i can get all information. Learning on CentOS 5.5 Thank You. |
This is a rather complex question with regards to what actually happens when you ask the system to run a daemon or program.
Basically, when you ask the system to run a daemon/program, the kernel assigns it a chunk of memory for it to load into. Once loaded, it get executed. Once running, it ask for any additional memory space for heap/stack etc. Depending on the daemon/program, it may then read any CLI options and/or configuration files and set it operating parameters accordingly. When the daemon/program gets a signal to quit/exit/close, it should first ask/save any data. Within it's shutdown routine, it should release all assigned memory back to the kernel before exiting. The kernel then reclaims the memory space that the program was loaded into and returns it to the free pool. Of course this is very simplistic and does not even consider the kernel having to move other programs into swap space to make memory available for the newly requested program. If you would like to know exactly what files are used by any particular daemon/program, check out it's manpages. You mentioned adding a user. If you use the useradd utility, a look at the end of the manpages for useradd show: Code:
FILES For more info, try: Code:
man ld-linux http://en.wikipedia.org/wiki/Executa...inkable_Format |
Quote:
As you are running Centos 5.5 (latest id 5.8 btw) you should bookmark this http://www.linuxtopia.org/online_boo...ion/index.html as Centos is a free rebuild of RHEL. |
All times are GMT -5. The time now is 05:36 PM. |