1. 14 Oct, 2015 4 commits
    • Daniel Black's avatar
      MDEV-426: systemd PermissionsStartOnly=true by default · 3723c70a
      Daniel Black authored
      mariadb-service-convert during migration can create a file containing
      ExecStartPre=/usr/sbin/sysctl -q -w vm.drop_caches=3 if the users my.cnf
      contains [mysqld_safe] flush_caches. This sysctl entry change requires root
      access. No existing ExecStartPre requires execution requires execution
      as another user.
      
      There is a comment in the mariadb{,@}.service.in that indicates
      mysqld_install which would require -u mysql to explicity change user to
      mysql from root since PermissionsStartOnly=true.
      
      Otherwise the following error would be generated:
      Oct 14 07:38:38 spaceman systemd[1]: Starting MariaDB database server...
      -- Subject: Unit mariadb.service has begun start-up
      -- Defined-By: systemd
      -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
      --
      -- Unit mariadb.service has begun starting up.
      Oct 14 07:38:38 spaceman sysctl[10089]: sysctl: permission denied on key 'vm.drop_caches'
      Oct 14 07:38:38 spaceman systemd[1]: mariadb.service: control process exited, code=exited status=255
      Oct 14 07:38:38 spaceman systemd[1]: Failed to start MariaDB database server.
      3723c70a
    • Daniel Black's avatar
      MDEV-426: systemd mariadb-sevice-convert - abs paths · 079cc48e
      Daniel Black authored
      Systemd config files need absolute paths.
      
      LimitCore was ment to be LimitCORE
      
      Oct 14 07:28:04 spaceman systemd[1]: [/etc/systemd/system/mariadb.service.d/migrated-from-my.cnf-settings.conf:7] Unknown lvalue 'LimitCore' in section 'Service'
      Oct 14 07:28:04 spaceman systemd[1]: [/etc/systemd/system/mariadb.service.d/migrated-from-my.cnf-settings.conf:9] Executable path is not absolute, ignoring: sync
      Oct 14 07:28:04 spaceman systemd[1]: [/etc/systemd/system/mariadb.service.d/migrated-from-my.cnf-settings.conf:10] Executable path is not absolute, ignoring: sysctl -q -w vm.drop_caches=3
      079cc48e
    • Daniel Black's avatar
      MDEV-426: mariadb-service-convert to use MYSQLD_OPTS · 82fb035e
      Daniel Black authored
      During the review process OPTIONS was converted to MYSQLD_OPTS.
      In the script mariadb-service convert, the ExecStart of the system
      also uses this setting.
      82fb035e
    • Nirbhay Choubey's avatar
  2. 12 Oct, 2015 6 commits
  3. 11 Oct, 2015 3 commits
  4. 10 Oct, 2015 2 commits
  5. 09 Oct, 2015 18 commits
  6. 08 Oct, 2015 7 commits