[MCOL-70] systemd service support Created: 2016-05-20  Updated: 2023-10-26  Resolved: 2016-07-13

Status: Closed
Project: MariaDB ColumnStore
Component/s: ?
Affects Version/s: None
Fix Version/s: 1.0.2

Type: Task Priority: Major
Reporter: markus makela Assignee: David Hill (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Blocks
is blocked by MCOL-69 autotools based build process does no... Closed
Relates
relates to MCOL-4 Build for CentOS 7 Closed
relates to MCOL-5 Build for Ubuntu 16.04 Closed
relates to MCOL-4132 systemd startup logic suggestions Closed

 Description   

Per dshjoshi's email today:
.. binaries for CentOS 7, Debian 8 and Ubuntu 16.04 binaries on Portal ...

These platforms are 'systemd' platforms. The existing scripts for InfiniDB are all init.d based. systemd based services will have to be created for the new operating systems that use 'systemd'.

https://en.wikipedia.org/wiki/Systemd



 Comments   
Comment by Dipti Joshi (Inactive) [ 2016-05-31 ]

jswanhart Changing this from Bug to Task

Comment by David Hill (Inactive) [ 2016-06-30 ]

changes required:

/etc/init.d/xxx to systemctl 'action' xxx

chkconfig to systemctl

https://fedoraproject.org/wiki/SysVinit_to_Systemd_Cheatsheet

Comment by David Hill (Inactive) [ 2016-07-01 ]

how to test.

on centos 6
----------------

after install:

  1. chkconfig --list | grep columnstore // you should see
    columnstore 0:off 1:off 2:on 3:on 4:on 5: on 6:off

reboot node and make sure columnstore is automatically restarted

after uninstall, if you run the same command it will show nothing

on centos 7
---------------

after install:

  1. sysyemctl list-unit-files | grep columnstore // you should see
    columnstore enabled

reboot node and make sure columnstore is automatically restarted

after uninstall, if you run the same command it will show nothing

Comment by David Hill (Inactive) [ 2016-07-12 ]

review install script changes

Comment by David Hill (Inactive) [ 2016-07-12 ]

I will add in github info

Comment by David Hill (Inactive) [ 2016-07-12 ]

changes to mariabd-columnstore-engine in mariadb corp github repo in the develop branch.

Original changes made in the MCOL-70 branch and merged into develop

commit 71b722a10364265258a6f19049e7f31ff7661c7c
Merge: 4a51571 fcc0741
Author: david hill <david.hill@mariadb.com>
Date: Thu Jul 7 16:18:43 2016 -0500

merge MCOL-70

commit fcc07415cef97ae4f60727cb347575b585be9761
Merge: b6342a7 4a51571
Author: david hill <david.hill@mariadb.com>
Date: Thu Jul 7 16:17:08 2016 -0500

Merge branch 'develop' into MCOL-70

NOTE: I didn't use the exact systemd service script from the example you provided. The main issues is the old 'columnstore' script does extra setup for non-root and hdfs. That is where I had the issue of trying to figure out how to do that in the new systemd script. So all I ended up doing is creating a new systemd script, columnstore.service, that just called the old script, columnstore, so we have the some functionality.

Comment by markus makela [ 2016-07-12 ]

ExecStopPost could be replaced with ExecStop because ExecStopPost is run only after SIGTERM is sent to the process. With ExecStop, /usr/local/mariadb/columnstore/bin/columnstore stop is the only command executed.

For details, see systemd.service(5).

Comment by David Hill (Inactive) [ 2016-07-13 ]

reviewed

Generated at Thu Feb 08 02:18:17 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.