76 Commits

Author SHA1 Message Date
Markus Makela
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
Markus Makela
ea0c4bd616 Fixed systemctl commands being called even if it wasn't available
On systems where the systemd directories exist but not the systemctl command,
installation of MaxScale would cause systemctl to be called. This would print
an error when the package is being installed.
2015-12-14 13:51:29 +02:00
Markus Makela
5266f1f125 Updated postrm script
Pre-1.2.0 configuration scripts are no longer copied and renamed.
Init scripts, ldconfig files and systemd service files are only removed if
they are found.
2015-12-11 06:22:07 +02:00
Markus Makela
f0c66232b5 Fixed typo in postinstall script
A typo caused the script to malfunction.
2015-12-11 06:13:21 +02:00
Markus Makela
943bcf1fe9 Fixed postinstall script
The postinstall script tried to create a group for the maxscale even if the
useradd command had created one. This fix removes the warning messages by
creating the group while the user is being created.

If the systemd folder wasn't located at /usr/lib/systemd/ but at /lib/systemd/
the postinstall script would not copy the file.

Also added error messages if some of the files could not be located.
2015-12-10 13:19:14 +02:00
markus456
8ccb600b00 Merge pull request #101 from rsanting/develop
Fix to MXS-499: https://mariadb.atlassian.net/browse/MXS-499
2015-12-10 10:54:01 +02:00
Markus Makela
573af3c4c1 Removed 1.2.0 installation warnings
The message printed when MaxScale is installed from a package is no longer
necessary for 1.3.0.
2015-11-27 12:23:07 +02:00
Markus Makela
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
Markus Makela
0705f38bb9 Fix to MXS-464: https://mariadb.atlassian.net/browse/MXS-464
The ownership change for the /var folders is now done recursively.
2015-11-12 09:42:24 +02:00
Markus Makela
bed6666338 Fix to MXS-367: https://mariadb.atlassian.net/browse/MXS-367
Template config file is copied as maxscale.cnf if no configuration file is found.
If /etc/maxscale.cnf is not found, the /etc/maxscale.cnf.template will be copied as /etc/maxscale.cnf.
This allows MaxScale to start right after installation if combined with a running and properly configured server.
2015-10-27 09:31:55 +02:00
Markus Makela
4d7629038d Fix to MXS-302: https://mariadb.atlassian.net/browse/MXS-302
Added support for additional command line parameters via sysconfig files.
2015-09-30 13:13:49 +03:00
Markus Makela
2f0ef4ad31 Configuration files from older installations no longer overwrite existing files. 2015-09-24 14:39:21 +03:00
Markus Makela
e93f922e21 Cleaned up Ubuntu init scripts. 2015-09-07 14:03:30 +03:00
Markus Makela
ccfc6fe780 Fix to MXS-317: https://mariadb.atlassian.net/browse/MXS-317
Log, lib, cache and run directories are created on start if they do not exist.
The ownership of the directories is changed to maxscale and the permissions are set to 0755.
2015-08-31 10:07:30 +03:00
Markus Makela
cf704c0072 Added missing install command switch. 2015-08-03 10:59:52 +03:00
Markus Makela
1b4fd2c2eb Fix to MXS-293: https://mariadb.atlassian.net/browse/MXS-293 2015-08-03 09:52:53 +03:00
Markus Makela
ffd62edf27 Merge branch 'develop' of https://github.com/mariadb-corporation/MaxScale into develop 2015-08-03 08:43:25 +03:00
Markus Makela
35c24aebf8 Fix to MXS-297: https://mariadb.atlassian.net/browse/MXS-297
Changed the ldconfig file destionation to /etc/ld.so.conf.d
2015-08-03 08:40:40 +03:00
markus456
81dcb2d0eb Merge pull request #88 from tanji/centos7-systemd-fix
CentOS 7 systemd service file fixes
2015-08-03 08:03:17 +03:00
Guillaume Lefranc
40f4156ec4 Create PID dir on initialization 2015-07-30 12:44:14 +02:00
Guillaume Lefranc
89d8e452c5 Use install binary instead of mkdir/chown 2015-07-30 12:31:49 +02:00
Guillaume Lefranc
c6cd8cfac9 Increase file limit to 64K based on consultant feedback 2015-07-29 18:18:13 +02:00
Guillaume Lefranc
9a6553972a Set a higher default open file limit 2015-07-29 17:54:12 +02:00
Guillaume Lefranc
4550a95a2e Create PID dir on service start 2015-07-29 17:53:41 +02:00
Markus Makela
162f7d0961 Added daemon-reload to the postinst script. 2015-07-22 17:41:48 +03:00
Markus Makela
05991384a6 Added missing removal of systemd files to the postinstall script. 2015-06-27 09:51:59 +03:00
Markus Makela
d5e94d5df6 Merge branch 'MXS-179' into develop 2015-06-18 15:11:51 +03:00
Markus Makela
fd42395d00 Removed mandb call from postinstall script and added cmake messages about systemd service file installation. 2015-06-18 08:17:02 +03:00
Markus Makela
2ea7ff61a2 Fixed init.d and systemd scripts. 2015-06-16 14:20:53 +03:00
Markus Makela
a562eb7cee Merge branch 'develop' into MXS-179
Conflicts:
	CMakeLists.txt
2015-06-15 16:44:01 +03:00
Markus Makela
521e1aaf3b Added man page for maxscale. 2015-06-12 02:55:07 +03:00
Markus Makela
8ac79cf2ad Fixed some hard-coded paths being used instead of CMake variable values. 2015-06-11 10:28:35 +03:00
Markus Makela
528e69b726 Added a warning about 1.2 changes to the postinstall script 2015-06-09 12:51:43 +03:00
Markus Makela
6f58f29494 Added a guide on how to have a HA setup of MaxScale with lsyncd. 2015-06-04 19:14:53 +03:00
Markus Makela
98d98c589e Added an Lsyncd configuration file. 2015-06-04 13:30:36 +03:00
Markus Makela
f4dee6d584 Fixed systemd service file not starting with the maxscale user. 2015-05-28 12:11:49 +03:00
Markus Makela
5f076b81d4 Merge branch 'install_dir_change' into develop
Conflicts:
	CMakeLists.txt
	Documentation/Tutorials/Administration-Tutorial.md
	log_manager/CMakeLists.txt
	server/core/CMakeLists.txt
	server/core/gateway.c
	server/core/maxkeys.c
	server/core/maxpasswd.c
	server/modules/filter/test/CMakeLists.txt
	server/modules/routing/CMakeLists.txt
2015-05-26 13:34:39 +03:00
Markus Makela
72066a4262 Added a conditional for systemd script installation and changed directory rights for the maxscale user. 2015-05-22 14:12:40 +03:00
Markus Makela
6d9765f736 Added copying of old configuration files to new directories. 2015-05-21 15:22:18 +03:00
Markus Makela
e794c0953c Added systemd script installation 2015-05-19 18:17:42 +03:00
Markus Makela
b41130b533 Fixed the useradd command in the postinst script having he command line arguments in the wrong order. 2015-05-12 08:11:10 +03:00
Markus Makela
3fcc1778bb Added changing of directory ownership. 2015-05-12 06:43:36 +03:00
Markus Makela
2b457bf372 Updated init.d and systemd scripts. 2015-05-11 06:19:06 +03:00
Markus Makela
fb8359b5ca Fixed missing installation of init.d and ldconfig files. 2015-05-06 12:34:10 +03:00
Markus Makela
7a56be5f3d Fixed LSB compatible init.d script missing reload functionality. 2015-04-30 11:36:33 +03:00
Markus Makela
71531cde3e Updated package installation and started documentation update. 2015-04-28 11:09:49 +03:00
Markus Makela
9e0a2bfc12 Changed relevant files to use get_cachedir() instead of using the now deprecated MAXSCALE_HOME. 2015-04-27 21:55:57 +03:00
Markus Makela
55249193a9 Updated post-install scripts and binlogrouter
Binlogrouter: Switched hard-coded maximum path values to PATH_MAX and used cache directory instead of MAXSCALE_HOME
Scripts: Updated with new executable file paths
2015-04-27 14:47:26 +03:00
Markus Makela
10e9203b5b Updated postinst script 2015-04-26 11:39:00 +03:00
Markus Makela
ed426ca30d Updated packaging install layout, moved some cmake files around. 2015-04-26 06:35:36 +03:00