Find the answer to your Linux question:
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.
  1. #1
    Just Joined!
    Join Date
    Jan 2008
    Posts
    26

    Post 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.........

  2. #2
    Linux Guru bigtomrodney's Avatar
    Join Date
    Nov 2004
    Location
    Ireland
    Posts
    6,133
    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.

  3. #3
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,677
    So to answer your question.....
    The amount of typing you must do.

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined! adrianx's Avatar
    Join Date
    Feb 2008
    Posts
    27
    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 /.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •