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

000

Well-Known Member
Jun 3, 2008
549
30
78
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?
 

quietFinn

Well-Known Member
Feb 4, 2006
2,040
551
493
Finland
cPanel Access Level
Root Administrator
There is no difference, "service postgresql status" calls "/etc/init.d/postgresql status"
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
Hello :)

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

Thank you.