Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    158
    Likes Received:
    0
    Trophy Points:
    66
    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:
    11
    Trophy Points:
    168
    Location:
    Finland
    cPanel Access Level:
    Root Administrator
    There is no difference, "service postgresql status" calls "/etc/init.d/postgresql status"
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. 000

    000 Well-Known Member

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

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,896
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

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

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice