[Groonga-commit] groonga/groonga at 74466a3 [master] package debian: create PID file directory automatically

アーカイブの一覧に戻る

Kouhei Sutou null+****@clear*****
Tue Oct 21 12:30:50 JST 2014


Kouhei Sutou	2014-10-21 12:30:50 +0900 (Tue, 21 Oct 2014)

  New Revision: 74466a3f3209e9f6bfe0553ab7f4ce379ab8fc0b
  https://github.com/groonga/groonga/commit/74466a3f3209e9f6bfe0553ab7f4ce379ab8fc0b

  Message:
    package debian: create PID file directory automatically

  Modified files:
    packages/debian/groonga-httpd.init

  Modified: packages/debian/groonga-httpd.init (+4 -0)
===================================================================
--- packages/debian/groonga-httpd.init    2014-10-21 12:30:34 +0900 (e0ea0f7)
+++ packages/debian/groonga-httpd.init    2014-10-21 12:30:50 +0900 (318ed0e)
@@ -53,6 +53,10 @@ fi
 #
 do_start()
 {
+    pid_file_dir=$(dirname "$PID_FILE")
+    if [ ! -d "${pid_file_dir}" ]; then
+	mkdir -p "${pid_file_dir}"
+    fi
     # Return
     #   0 if daemon has been started
     #   1 if daemon was already running
-------------- next part --------------
HTML����������������������������...
ダウンロード 



More information about the Groonga-commit mailing list
アーカイブの一覧に戻る