How does the os know which paramater to pass to /etc/init.d/
- by iDev247
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?