[MXS-293] Bug in init script, and maxscale --user=maxscale does run as root Created: 2015-07-29  Updated: 2015-08-31  Resolved: 2015-08-03

Status: Closed
Project: MariaDB MaxScale
Component/s: Core
Affects Version/s: 1.2.0
Fix Version/s: 1.3.0

Type: Bug Priority: Minor
Reporter: Joffrey MICHAIE (Inactive) Assignee: markus makela
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Duplicate
is duplicated by MXS-344 Maxscale init script - --user=maxscal... Closed

 Description   

Hi,

Installed maxscale 1.2.0 on debian 7.8.

The init script contains, on line 48 (no quotes):

DAEMON_OPTS= --user=maxscale

Which leads to a warning at startup:

/etc/init.d/maxscale: line 48: --user=maxscale: command not found

I put single quotes, no more error at startup, but still I see it is running as root:

root@server:~# ps auxwwf |grep maxscale
root     17329  0.1  0.1 586720 51392 ?        Ssl  14:06   0:17 /usr/bin/maxscale  --user=maxscale

Joffrey



 Comments   
Comment by markus makela [ 2015-08-03 ]

Removed the extra space from the variable declaration.

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