Details
Description
Steps to reproduce:
[maxscale@localhost ~]$ whoami
maxscale
[maxscale@localhost ~]$ pwd
/home/maxscale
[maxscale@localhost ~]$ tar xf maxscale-23.02.1.rhel.7.tar.gz
[maxscale@localhost ~]$ cd maxscale-23.02.1.rhel.7
[maxscale@localhost maxscale-23.02.1.rhel.7]$ cp etc/maxscale.cnf.template etc/maxscale.cnf
[maxscale@localhost maxscale-23.02.1.rhel.7]$ bin/maxscale --basedir=.
[maxscale@localhost maxscale-23.02.1.rhel.7]$ tail var/log/maxscale/maxscale.log
2023-03-22 08:12:47 notice : Log directory: ./var/log/maxscale
2023-03-22 08:12:47 notice : Data directory: ./var/lib/maxscale
2023-03-22 08:12:47 notice : Module directory: ./lib64/maxscale
2023-03-22 08:12:47 notice : Service cache: ./var/cache/maxscale
2023-03-22 08:12:47 notice : Working directory: ./var/log/maxscale
2023-03-22 08:12:47 error : Cannot create data directory './var/lib/maxscale': No such file or directory
2023-03-22 08:12:47 alert : Cannot create data directory './var/lib/maxscale': No such file or directory
2023-03-22 08:12:47 warning: Failed to remove pidfile ./var/run/maxscale/maxscale.pid: No such file or directory
2023-03-22 08:12:47 MariaDB MaxScale is shut down.
----------------------------------------------------
So either full directory has to be specified or simply use $(pwd)
Both
bin/maxscale --basedir = /home/maxscale/maxscale-23.02.1.rhel.7
and
bin/maxscale --basedir = $(pwd)
sucessfully start it