Commit Graph

14 Commits

Author SHA1 Message Date
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