[MXS-1044] Init-Script for SLES 11 displays error messages when called Created: 2016-12-01  Updated: 2016-12-14  Resolved: 2016-12-14

Status: Closed
Project: MariaDB MaxScale
Component/s: init script
Affects Version/s: 2.0.2
Fix Version/s: 2.0.3

Type: Bug Priority: Minor
Reporter: Bernd Wolber Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Environment:

SLES 11 SP4


Attachments: HTML File maxscale    
Issue Links:
Relates
relates to MXS-1046 Merge pull request #115 Closed

 Description   

The Init-Script included in the rpm-File for SLES 11 (maxscale-2.0.2-1.sles.11.x86_64.rpm) does work but outputs errormessages due to functions which are not available in SLES's LSB init-functions:
$> /etc/init.d/maxscale status
./maxscale: line 152: log_daemon_msg: command not found
./maxscale: line 153: status_of_proc: command not found
./maxscale: line 164: log_end_msg: command not found

This also happens on start, stop etc.
As this affects only the console output of the script but not the basic functionality (except displaying the status) I classified this as a minor problem.

I rewrote the init-Script so that it doesn't rely on those functions any more and uses SLES-functions (rc_status to display the result of the previous action) and attached it.



 Comments   
Comment by markus makela [ 2016-12-01 ]

If you'd like to contribute the modified script, I suggest you do a pull request on the 2.0 branch on GitHub. That way we can include it in the 2.0.3 release.

Comment by Bernd Wolber [ 2016-12-02 ]

Hi Markus

OK I sent a Pull-Request: https://github.com/mariadb-corporation/MaxScale/pull/115

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