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............
- 04-03-2009 #1Just Joined!
- Join Date
- Jan 2008
- Posts
- 26
diff. between Service prog start & /etc/init.d/prog start
hi friends,
cud u plz clear me the difference between :
service httpd start & /etc/init.d/httpd start
plz explain elaborately....
thanx.........
- 04-03-2009 #2Linux Guru
- Join Date
- Nov 2004
- Posts
- 6,110
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.
- 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 /.


Reply With Quote