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

000

Well-Known Member
Jun 3, 2008
232
6
68
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
1,222
87
178
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,913
2,202
363
Hello :)

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

Thank you.