Commit Graph

16 Commits

Author SHA1 Message Date
32fbd59f85 Add ASAN options into systemd service files
By default ASAN only reports the errors and doesn't cause the program to
crash. By forcing a SIGABRT, the process will generate a core dump which
causes the test to fail.

Although the act of placing environment variables inside the systemd
service file might seem intrusive, they have no effect on non-ASAN
builds. This appears to be the most convenient and straightforward way of
changing ASAN behavior for testing.
2018-09-26 11:08:23 +03:00
20bfe16d11 Remove unnecessary sleeps
Every time MaxScale was restarted, the test waited for a total of 25
seconds. As MaxScale should start before the command returns, the sleep is
not necessary.

Added StartLimitBurst=0 to the systemd service file to allow rapid
restarts of MaxScale.
2017-09-21 09:36:50 +03:00
282ed9f8c2 Start MaxScale as the maxscale user with systemd
Systemd allows MaxScale to start as the 'maxscale' user and it should be
done to completely prevent root access for the maxscale process.
2016-10-29 11:03:15 +03:00
8be833640f Change restart type to on-abort
MaxScale should only restart if an abort is detects, i.e. MaxScale
crashes.
2016-09-12 09:35:11 +03:00
4a95439a8d Don't restart even on abnormal failures
If systemd restarts MaxScale when an abnormal exit is detected, it is
likely to happen again. This leads into a loop which causes multiple
maxscale processes on the same machine. One example of this behavior is
when systemd times MaxScale out when it is starting.
2016-09-09 16:38:27 +03:00
d5d1089d89 MXS-574: Fixed systemd script
The TimeoutStartSec is now properly capitalized.
2016-02-11 11:04:38 +02:00
4b7cec504a Changed maxscale.service restart values
The maxscale service will be restarted only if the process is down because
a signal was caught or the process times out. If the process would be restarted
when it exits with a non-zero value, this would lead to infinite loops when
there is a configuration error.
2015-12-17 10:23:47 +02:00
6ea209d13a Added a timeout for the systemd script
The fact that the maxscale process exits only after all services have been
started means that systemd will kill the maxscale process if starting the
services takes too long. Since the user authentication data is loaded on
startup and can take up a long time, there needs to be a longer than
default timeout for systems that use systemd.
2015-11-26 09:28:04 +02:00
89d8e452c5 Use install binary instead of mkdir/chown 2015-07-30 12:31:49 +02:00
c6cd8cfac9 Increase file limit to 64K based on consultant feedback 2015-07-29 18:18:13 +02:00
9a6553972a Set a higher default open file limit 2015-07-29 17:54:12 +02:00
4550a95a2e Create PID dir on service start 2015-07-29 17:53:41 +02:00
2ea7ff61a2 Fixed init.d and systemd scripts. 2015-06-16 14:20:53 +03:00
f4dee6d584 Fixed systemd service file not starting with the maxscale user. 2015-05-28 12:11:49 +03:00
2b457bf372 Updated init.d and systemd scripts. 2015-05-11 06:19:06 +03:00
71531cde3e Updated package installation and started documentation update. 2015-04-28 11:09:49 +03:00