Lines 67-73
Link Here
|
67 |
return 1 |
67 |
return 1 |
68 |
fi |
68 |
fi |
69 |
|
69 |
|
70 |
checkpath -d -m 0770 -o postgres:postgres ${socket_path} |
70 |
checkpath -d -m 0771 -o postgres:postgres ${socket_path} |
71 |
if [ -e ${socket_path}/.s.PGSQL.${configured_port} ] ; then |
71 |
if [ -e ${socket_path}/.s.PGSQL.${configured_port} ] ; then |
72 |
eerror "Socket conflict." |
72 |
eerror "Socket conflict." |
73 |
eerror "A server is already listening on:" |
73 |
eerror "A server is already listening on:" |
Lines 109-124
Link Here
|
109 |
ebegin "Stopping PostgreSQL (this can take up to ${seconds} seconds)" |
109 |
ebegin "Stopping PostgreSQL (this can take up to ${seconds} seconds)" |
110 |
|
110 |
|
111 |
local retval |
111 |
local retval |
112 |
local retries=SIGTERM/$((${NICE_TIMEOUT}*1000)) |
112 |
local retries=SIGTERM/${NICE_TIMEOUT} |
113 |
|
113 |
|
114 |
if [ "${RUDE_QUIT}" != "NO" ] ; then |
114 |
if [ "${RUDE_QUIT}" != "NO" ] ; then |
115 |
einfo "RUDE_QUIT enabled." |
115 |
einfo "RUDE_QUIT enabled." |
116 |
retries="${retries}/SIGINT/$((${RUDE_TIMEOUT}*1000))" |
116 |
retries="${retries}/SIGINT/${RUDE_TIMEOUT}" |
117 |
fi |
117 |
fi |
118 |
if [ "${FORCE_QUIT}" = "YES" ] ; then |
118 |
if [ "${FORCE_QUIT}" = "YES" ] ; then |
119 |
einfo "FORCE_QUIT enabled." |
119 |
einfo "FORCE_QUIT enabled." |
120 |
ewarn "A recover-run might be executed on next startup." |
120 |
ewarn "A recover-run might be executed on next startup." |
121 |
retries="${retries}/SIGQUIT/$((${FORCE_TIMEOUT}*1000))" |
121 |
retries="${retries}/SIGQUIT/${FORCE_TIMEOUT}" |
122 |
fi |
122 |
fi |
123 |
|
123 |
|
124 |
start-stop-daemon --stop \ |
124 |
start-stop-daemon --stop \ |