Navigation Menu

Skip to content

Commit

Permalink
deb: add --max-time for status command
Browse files Browse the repository at this point in the history
  • Loading branch information
kenhys committed Aug 2, 2012
1 parent fbfd01b commit c2024bf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/debian/groonga-httpd.default
Expand Up @@ -7,6 +7,6 @@
#LOG_PATH=/var/log/groonga/groonga.log
#QUERY_LOG_PATH=/var/log/groonga/query.log
#PROTOCOL=http

STATUS_TIMEOUT=3
# Comment out this to disable groonga-httpd daemon.
ENABLE=yes
6 changes: 5 additions & 1 deletion packages/debian/groonga-httpd.init
Expand Up @@ -64,7 +64,11 @@ DAEMON_ARGS="${DAEMON_ARGS} ${OPTION_ARGS}"
send_command()
{
command=$1
$CURL "http://${ADDRESS}:${PORT}/d/${command}"
if [ "$command" = "status" ]; then
$CURL --max-time $STATUS_TIMEOUT "http://${ADDRESS}:${PORT}/d/${command}"
else
$CURL "http://${ADDRESS}:${PORT}/d/${command}"
fi
}

#
Expand Down

0 comments on commit c2024bf

Please sign in to comment.