[MXS-35] bugzillaId-451: maxscale main() exit code is always 0 after it daemonizes Created: 2014-01-30  Updated: 2015-11-25  Resolved: 2015-09-15

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

Type: Bug Priority: Minor
Reporter: Massimiliano Pinto (Inactive) Assignee: markus makela
Resolution: Fixed Votes: 0
Labels: None
Environment:

Mac OS


Issue Links:
Relates
relates to MXS-491 MaxScale can time out systemd if star... Closed

 Description   

This is imported from bugzilla item: http://bugs.mariadb.com/show_bug.cgi?id=451

Description Massimiliano 2014-06-30 18:50:51 UTC
The maxscale main() exit code is 0 after daemonize, so next failed action are not returned to caller (shell):

i.e. Failure in MAXSCALE_HOME results in effective return code 4 for:

maxscale -d -c /fake/dir

but is alway 0 for

maxscale -c /fake/dir ; echo $0

0

Daemonize should be called after latest check



 Comments   
Comment by Dipti Joshi (Inactive) [ 2015-06-16 ]

markus makela Can you please estimate for this ?

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