Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-15419

Support for systemd

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 4.5.0
    • 4.0.0
    • installer
    • Security Level: Public
    • None
    • 4
    • Build Sprint 16, Build Sprint 17

    Description

      Since version 7 CentOS (and RHEL) switched to systemd. At the moment there is still some compatibility layer, which allows to use SysV initialization scripts, but it might be changed/broken in future. For example, in recent stable Fedora 22, packaged init script just does not work, and note that Fedora usually serves as sandbox to verify new features before creating CentOS package base.

      I propose to include unit file for system into standard Couchbase Server distribution. It might be not enabled by default, just install the file. So people, who use Fedora go without porting init script to systemd.

      Verification steps:

      1) install Couchbase Server
      2) save the unit file as /usr/lib/systemd/system/couchbase-server.service
      3) sudo systemctl daemon-reload
      4) sudo systemctl start couchbase-server

      ~ $ sudo systemctl status couchbase-server.service 
      ● couchbase-server.service - Couchbase Server
         Loaded: loaded (/usr/lib/systemd/system/couchbase-server.service; disabled; vendor preset: disabled)
         Active: active (running) since Wed 2015-06-17 13:46:37 MSK; 10min ago
           Docs: http://docs.couchbase.com
       Main PID: 18759 (beam.smp)
         CGroup: /system.slice/couchbase-server.service
                 ├─18652 /opt/couchbase/lib/erlang/erts-5.10.4.0.0.1/bin/epmd -daemon
                 ├─18730 /opt/couchbase/lib/erlang/erts-5.10.4.0.0.1/bin/beam.smp -A 16 -- -root /opt/couchbase/lib/erlang -progname erl -- -home /opt/couchbase -- -smp enable -kernel inet_dist_listen_min 21100 inet_dist_listen_max 21299 erro...
                 ├─18759 /opt/couchbase/lib/erlang/erts-5.10.4.0.0.1/bin/beam.smp -A 16 -sbt u -P 327680 -K true -swt low -MMmcs 30 -e102400 -- -root /opt/couchbase/lib/erlang -progname erl -- -home /opt/couchbase -- -smp enable -setcookie no...
                 ├─18791 sh -s disksup
                 ├─18792 /opt/couchbase/lib/erlang/lib/os_mon-2.2.14/priv/bin/memsup
                 ├─18794 /opt/couchbase/lib/erlang/lib/os_mon-2.2.14/priv/bin/cpu_sup
                 ├─18795 inet_gethost 4
                 ├─18796 inet_gethost 4
                 ├─18893 /opt/couchbase/bin/saslauthd-port
                 ├─18914 /opt/couchbase/bin/memcached -C /opt/couchbase/var/lib/couchbase/config/memcached.json
                 ├─19012 /opt/couchbase/lib/erlang/erts-5.10.4.0.0.1/bin/beam.smp -P 327680 -K true -- -root /opt/couchbase/lib/erlang -progname erl -- -home /opt/couchbase -- -pa /opt/couchbase/lib/erlang/lib/appmon-2.1.14.2/ebin /opt/couchb...
                 ├─19513 /opt/couchbase/lib/erlang/erts-5.10.4.0.0.1/bin/beam.smp -P 327680 -K true -- -root /opt/couchbase/lib/erlang -progname erl -- -home /opt/couchbase -- -pa /opt/couchbase/lib/erlang/lib/appmon-2.1.14.2/ebin /opt/couchb...
                 ├─19542 sh -s disksup
                 ├─19543 /opt/couchbase/lib/erlang/lib/os_mon-2.2.14/priv/bin/memsup
                 ├─19544 /opt/couchbase/lib/erlang/lib/os_mon-2.2.14/priv/bin/cpu_sup
                 ├─19547 /opt/couchbase/bin/priv/godu
                 ├─19548 sh -s ns_disksup
                 ├─19549 /opt/couchbase/bin/priv/godu
                 ├─19556 portsigar for ns_1@127.0.0.1
                 ├─19559 /opt/couchbase/bin/goport
                 ├─19561 /opt/couchbase/bin/goxdcr -localProxyPort=11215 -sourceKVAdminPort=8091 -xdcrRestPort=9998 -isEnterprise=true
                 ├─19589 /opt/couchbase/bin/moxi -Z port_listen=11211,default_bucket_name=default,downstream_max=1024,downstream_conn_max=4,connect_max_errors=5,connect_retry_interval=30000,connect_timeout=400,auth_timeout=100,cycle=200,downs...
                 ├─19590 inet_gethost 4
                 ├─19598 inet_gethost 4
                 ├─19610 /opt/couchbase/bin/goport
                 └─19612 /opt/couchbase/bin/projector -debug=true -kvaddrs=127.0.0.1:11210 -adminport=:9999 127.0.0.1:8091
      

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              thuan Thuan Nguyen
              avsej Sergey Avseyev
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty