Обсуждение: possible init script issue

Поиск
Список
Период
Сортировка

possible init script issue

От
Martín Marqués
Дата:
Hi all,

I was doing some maintenance on a server and discovered that if you
try using the SysV scripts to stop a postgres service that was started
by other means (pg_ctl the most common example) it won't stop it, but
will print a successful message.

The pg_ctl tool doesn't touch the lockfile from the sysV lock subsys,
but the SysV init script checks for the lock file first, but if it
doesn't find it it still echo_success.

Wouldn't it be wiser to echo_warning instead?

Cheers,

--
Martín Marqués http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services