[Groonga-commit] ranguba/chupa-text-docker at e5e2220 [master] Add systemd file for Ubuntu

Back to archive index
Kouhei Sutou null+****@clear*****
Fri Mar 29 09:49:48 JST 2019


Kouhei Sutou	2019-03-29 09:49:48 +0900 (Fri, 29 Mar 2019)

  Revision: e5e2220d9c2da6d57b31e252307d49a2440dded4
  https://github.com/ranguba/chupa-text-docker/commit/e5e2220d9c2da6d57b31e252307d49a2440dded4

  Message:
    Add systemd file for Ubuntu

  Added files:
    lib/systemd/system/chupa-text.service
  Modified files:
    README.md

  Modified: README.md (+14 -2)
===================================================================
--- README.md    2019-03-28 18:30:08 +0900 (8793896)
+++ README.md    2019-03-29 09:49:48 +0900 (6d6a121)
@@ -4,9 +4,9 @@
 
 Install Docker:
 
-  * [For Debian](https://docs.docker.com/engine/installation/linux/docker-ce/debian/)
+  * For Debian: Use `docker-compose` package in stretch-backports.
 
-  * [For Ubuntu](https://docs.docker.com/engine/installation/linux/docker-ce/ubuntu/)
+  * For Ubuntu: Use `docker-compose` package.
 
   * [For CentOS 7](https://docs.docker.com/engine/installation/linux/docker-ce/centos/)
 
@@ -56,6 +56,18 @@ Install logrotate configuration:
 
 Install systemd service file:
 
+For Debian and Ubuntu:
+
+```console
+% sudo ln -fs \
+    /var/lib/chupa-text/lib/systemd/system/chupa-text.service \
+                       /lib/systemd/system/chupa-text.service
+% sudo systemctl daemon-reload
+% sudo systemctl enable chupa-text
+```
+
+For CentOS:
+
 ```console
 % sudo ln -fs \
     /var/lib/chupa-text/usr/lib/systemd/system/chupa-text.service \

  Added: lib/systemd/system/chupa-text.service (+16 -0) 100644
===================================================================
--- /dev/null
+++ lib/systemd/system/chupa-text.service    2019-03-29 09:49:48 +0900 (249eee3)
@@ -0,0 +1,16 @@
+[Unit]
+Description=ChupaText - Text extraction service
+After=network.target
+
+[Service]
+Type=simple
+User=root
+Group=root
+WorkingDirectory=/var/lib/chupa-text
+ExecStart=/usr/bin/docker-compose up --abort-on-container-exit
+ExecStop=/usr/bin/docker-compose down
+# Because docker-compose up --abort-on-container-exit returns 0. :<
+Restart=always
+
+[Install]
+WantedBy=multi-user.target
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20190329/873d3acc/attachment-0001.html>


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