The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Difference into {service * status} & {/etc/init.d/* status} ??

Discussion in 'General Discussion' started by 000, Jun 8, 2013.

  1. 000

    000 Well-Known Member

    Joined:
    Jun 3, 2008
    Messages:
    150
    Likes Received:
    0
    Trophy Points:
    16
    Hi.

    What the is difference into

    PHP:
    service postgresql status
    service postgresql start
    service postgresql restart
    service postgresql stop

    /etc/init.d/postgresql status
    /etc/init.d/postgresql start
    /etc/init.d/postgresql restart
    /etc/init.d/postgresql stop
    ???

    I believe service * status = "what think cPanel" and service * status = what think the system
    ¿true?
     
  2. quietFinn

    quietFinn Well-Known Member

    Joined:
    Feb 4, 2006
    Messages:
    998
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    Finland
    cPanel Access Level:
    Root Administrator
    There is no difference, "service postgresql status" calls "/etc/init.d/postgresql status"
     
  3. 000

    000 Well-Known Member

    Joined:
    Jun 3, 2008
    Messages:
    150
    Likes Received:
    0
    Trophy Points:
    16
    Thanks :)
    Just I think-ed (was) is backward.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Both sets of commands will stop/start/restart PostgreSQL. The "service" command simply makes the call to the init script directory.

    Thank you.
     
Loading...

Share This Page