Results 1 to 3 of 3
Why do we the user (or init at startup) use scripts with start and stop arguments to start and stop servers instead of starting or stopping it explicitly like we ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 10-30-2011 #1
- Join Date
- Dec 2007
Why do server daemons use startup scripts?
Also, whats a convenient way of finding out where the actual binary for a server is instead of just the startup script location?
- 10-30-2011 #2
To give the various init systems (sysVinit, upstart, systemd to name a few):
- a unified way of starting/stopping daemons. The parameters to a init script are always the same
- a unified way of reading startup configs (user/group, parameters)
- a chance to start them according to the dependency hints (the comments on top of the scripts) and possibly in parallel
For finding the binary: reading the init script is a possibilty, another is to list the content of the package
rpm -qivl <PACKAGE> or dpkg -L <PACKAGE>You must always face the curtain with a bow.
- 10-31-2011 #3
- Join Date
- Apr 2009
- I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
You can find the location of a binary with the "whereis <name>" command.
Just remember, Semper Gumbi - always be flexible!