Results 1 to 4 of 4
hi friends, cud u plz clear me the difference between : service httpd start & /etc/init.d/httpd start plz explain elaborately.... thanx............
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 04-03-2009 #1
- Join Date
- Jan 2008
diff. between Service prog start & /etc/init.d/prog start
cud u plz clear me the difference between :
service httpd start & /etc/init.d/httpd start
plz explain elaborately....
- 04-03-2009 #2
- Join Date
- Nov 2004
The service command is just a wrapper that is included in Red Hat. All it does is make things easier by not requiring you to type the full init.d path to a service. It is a utility that you'll generally only see in Red Hat and its derivatives. The 'correct' way of doing things is using the full path as that is the native way of managing services in any SysV type Unix implementation.
- 04-03-2009 #3
So to answer your question.....
The amount of typing you must do.
The adventure of a life time.
Linux User #296285
- 04-03-2009 #4
This is what "man service" says:
service runs a System V init script in as predictable environment as possible, removing most environment variables and with current working directory set to /.