[MXS-800] Config file needs full path Created: 2016-07-10 Updated: 2016-12-02 Resolved: 2016-12-02 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | Core, Documentation |
| Affects Version/s: | 1.4.3 |
| Fix Version/s: | 2.0.2 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Will Fong | Assignee: | Esa Korhonen |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Sub-Tasks: |
|
||||||||||
| Sprint: | 2016-23 |
| Description |
|
Some confusing behavior when specifying a configuration file when running on the command line:
The documentation and the error message should mention that the complete path must be specified. It would also be good if the error message specified the locations that is has checked (save an admin some time). Alternatively, it would be great if a relative position (like just `maxscale -f myfile.cnf`) would be possible as well. Thanks! |
| Comments |
| Comment by markus makela [ 2016-07-11 ] |
|
I think this might be a problem with the fact that MaxScale changes the working directory in daemon mode to the log directory (/var/log/maxscale by default). If you add the -d switch, it will use the current working directory without forking the process. The path to the configuration file could be resolved relative to the directory where MaxScale was started from instead of using the actual working directory. This way relative pathnames could be used even without the -d switch. In any case, the changing of the working directory should be documented somewhere. |