Skip to content

Commit

Permalink
deb: use shutdown command for stop
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Mar 30, 2012
1 parent c95e784 commit f1cac54
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/debian/changelog
@@ -1,6 +1,7 @@
groonga (2.0.1-3) unstable; urgency=low

* Fix default file path: /etc/default/groonga -> /etc/default/groonga-server
* Use shutdown command for stop.

-- Kouhei Sutou <kou@clear-code.com> Fri, 30 Mar 2012 00:00:00 +0900

Expand Down
3 changes: 3 additions & 0 deletions packages/debian/groonga-server.init
Expand Up @@ -140,6 +140,9 @@ do_stop()
# 1 if daemon was already stopped
# 2 if daemon could not be stopped
# other if a failure occurred

send_command shutdown

start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 \
--pidfile $PIDFILE --name $NAME
RETVAL="$?"
Expand Down

0 comments on commit f1cac54

Please sign in to comment.