How does the os know which paramater to pass to /etc/init.d/
Posted
by
iDev247
on Server Fault
See other posts from Server Fault
or by iDev247
Published on 2012-06-28T01:56:05Z
Indexed on
2012/06/28
3:17 UTC
Read the original article
Hit count: 261
I've been working with linux for a while but in a rather simple manner.
I understand that scripts in init.d are executed when the os starts but how exactly does it works?
How does the os know which paramater to pass to a script?
To start apache I would do sudo /etc/init.d/apache2 start. If I run sudo /etc/init.d/apache2 it doesn't work without the start. How does the os pass start to the script?
© Server Fault or respective owner