[Groonga-commit] groonga/groonga at b4f6586 [master] centos systemd: stop to use PID file and daemon

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Apr 22 17:31:15 JST 2016


Kouhei Sutou	2016-04-22 17:31:15 +0900 (Fri, 22 Apr 2016)

  New Revision: b4f65869b77e21be1ceb03f42e665caa6ef581fd
  https://github.com/groonga/groonga/commit/b4f65869b77e21be1ceb03f42e665caa6ef581fd

  Message:
    centos systemd: stop to use PID file and daemon
    
    Because groonga user can't create a file under /var/run/.

  Modified files:
    data/systemd/centos/groonga-server-gqtp.service
    data/systemd/centos/groonga-server-http.service

  Modified: data/systemd/centos/groonga-server-gqtp.service (+2 -3)
===================================================================
--- data/systemd/centos/groonga-server-gqtp.service    2016-04-22 17:21:15 +0900 (eae18ab)
+++ data/systemd/centos/groonga-server-gqtp.service    2016-04-22 17:31:15 +0900 (05efed7)
@@ -3,12 +3,11 @@ Description=Groonga full text search GQTP server
 After=network.target
 
 [Service]
-Type=forking
-PIDFile=/var/run/groonga-server-gqtp.pid
+Type=simple
 EnvironmentFile=-/etc/sysconfig/groonga-server-gqtp
 User=groonga
 Group=groonga
-ExecStart=/usr/bin/groonga -d --pid-path /var/run/groonga-server-gqtp.pid --bind-address $ADDRESS --log-path $LOG_PATH --query-log-path $QUERY_LOG_PATH --protocol $PROTOCOL --port $PORT $DATABASE
+ExecStart=/usr/bin/groonga --bind-address $ADDRESS --log-path $LOG_PATH --query-log-path $QUERY_LOG_PATH --protocol $PROTOCOL --port $PORT -s $DATABASE
 
 [Install]
 WantedBy=multi-user.target

  Modified: data/systemd/centos/groonga-server-http.service (+2 -3)
===================================================================
--- data/systemd/centos/groonga-server-http.service    2016-04-22 17:21:15 +0900 (fb3e546)
+++ data/systemd/centos/groonga-server-http.service    2016-04-22 17:31:15 +0900 (cefe8c3)
@@ -4,12 +4,11 @@ After=network.target
 Conflicts=groonga-httpd.service
 
 [Service]
-Type=forking
-PIDFile=/var/run/groonga-server-http.pid
+Type=simple
 EnvironmentFile=-/etc/sysconfig/groonga-server-http
 User=groonga
 Group=groonga
-ExecStart=/usr/bin/groonga -d --pid-path /var/run/groonga-server-http.pid --bind-address $ADDRESS --log-path $LOG_PATH --query-log-path $QUERY_LOG_PATH --protocol $PROTOCOL --port $PORT $DATABASE
+ExecStart=/usr/bin/groonga --bind-address $ADDRESS --log-path $LOG_PATH --query-log-path $QUERY_LOG_PATH --protocol $PROTOCOL --port $PORT -s $DATABASE
 
 [Install]
 WantedBy=multi-user.target
-------------- next part --------------
HTML����������������������������...
Télécharger 



More information about the Groonga-commit mailing list
Back to archive index