[MXS-759] Starting MaxScale from command line fails on CentOS 7 Created: 2016-06-09  Updated: 2017-03-02  Resolved: 2017-03-02

Status: Closed
Project: MariaDB MaxScale
Component/s: Core
Affects Version/s: 2.0.0
Fix Version/s: 2.1.1

Type: Bug Priority: Minor
Reporter: markus makela Assignee: markus makela
Resolution: Fixed Votes: 0
Labels: None
Environment:

CentOS 7


Sprint: 2017-29

 Description   

Starting MaxScale directly fails on CentOS 7 if the /var/run/maxscale directory doesn't exist.

[user@node2 build]$ sudo maxscale -d --user=maxscale
Info : MaxScale will be run in the terminal process.
Configuration file : /etc/maxscale.cnf
Log directory      : /var/log/maxscale
Data directory     : /var/lib/maxscale
Module directory   : /usr/lib64/maxscale
Service cache      : /var/cache/maxscale
 
*
* Error : Failed to open PID file '/var/run/maxscale/maxscale.pid'. Error : No such file or directory 
*

Normally this directory is created by either the init script or the systemd service file. MaxScale should make sure that this directory exists and if not, try to create it.



 Comments   
Comment by markus makela [ 2017-03-02 ]

Creating the directory only solves the problem if the user running MaxScale has the permissions to create the PID directory.

Generated at Thu Feb 08 04:01:43 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.