[MXS-704] start/stop scripts use which in a non-silent manner Created: 2016-05-03  Updated: 2016-05-06  Resolved: 2016-05-06

Status: Closed
Project: MariaDB MaxScale
Component/s: Packaging
Affects Version/s: 1.4.3
Fix Version/s: 2.0.0

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


 Description   

I notice on installing maxscale-1.4.3.1-1 (rpm) on CentOS 6:

[user@host ~]$ sudo rpm -Uvh maxscale-1.4.3.1-1.centos.6.x86_64.rpm
warning: maxscale-1.4.3.1-1.centos.6.x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID 8167ee24: NOKEY
Preparing... ########################################### [100%]
1:maxscale ########################################### [100%]
which: no systemctl in (/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin)
[user@host ~]$

You use "which" to find something, but I think you're missing a '2>/dev/null' somewhere.

On CentOS 6 systemctl does not exist, as it uses the old (traditional init scripts).

I'm not sure if this breaks anything but certainly the install should I think be silent.



 Comments   
Comment by markus makela [ 2016-05-06 ]

The scripts indeed did not redirect the error output which caused the error messages to appear during installation.

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