[Groonga-commit] droonga/droonga-engine at 0f3ecd5 [master] Define register_service()

Back to archive index

KITAITI Makoto null+****@clear*****
Sat Jan 23 18:48:07 JST 2016


KITAITI Makoto	2016-01-23 18:48:07 +0900 (Sat, 23 Jan 2016)

  New Revision: 0f3ecd5ab84014213d4dff3b933640be2fe286a7
  https://github.com/droonga/droonga-engine/commit/0f3ecd5ab84014213d4dff3b933640be2fe286a7

  Merged 0c1e198: Merge pull request #39 from KitaitiMakoto/systemd

  Message:
    Define register_service()

  Modified files:
    install.sh

  Modified: install.sh (+10 -0)
===================================================================
--- install.sh    2016-01-23 17:48:24 +0900 (bb59697)
+++ install.sh    2016-01-23 18:48:07 +0900 (e7e141a)
@@ -253,7 +253,17 @@ install_from_repository() {
   install_gem_from_repository $NAME $REPOSITORY_URL
 }
 
+register_service() {
+  local unit=$NAME.service
 
+  curl -s -o /etc/systemd/system/$unit $(download_url "install/$unit")
+  if [ $? -ne 0 ];then
+    echo "ERROR: Failed to download systemd unit file!"
+    exit 1
+  fi
+
+  systemctl enable $unit
+}
 
 # ====================== for Debian/Ubuntu ==========================
 prepare_environment_in_debian() {
-------------- next part --------------
HTML����������������������������...
Download 



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