[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: |
|
||||||||||||||||||||||||
| Description |
|
Per dshjoshi's email today: 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:
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:
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 commit 71b722a10364265258a6f19049e7f31ff7661c7c merge commit fcc07415cef97ae4f60727cb347575b585be9761 Merge branch 'develop' into 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 |