Uploaded image for project: 'Percona XtraDB Cluster'
  1. Percona XtraDB Cluster
  2. PXC-840

systemd configuration for PXC 5.7 has alias typo leading to error when enable called twice

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Packaging
    • Labels:
      None

      Description

      [root@localhost ~]# systemctl enable mysql
      Created symlink from /etc/systemd/system/mysql.service to /usr/lib/systemd/system/mysql.service.
      Created symlink from /etc/systemd/system/multi-user.target.wants/mysql.service to /usr/lib/systemd/system/mysql.service.
      [root@localhost ~]# systemctl status mysqld
      Unit mysqld.service could not be found.

      We can see this in /usr/lib/systemd/system/mysql.service:

      [Install]
      WantedBy=multi-user.target
      Alias=mysql.service

      After changing to:

      [Install]
      WantedBy=multi-user.target
      Alias=mysqld.service

      the issue is gone:

      [root@localhost ~]# systemctl enable mysql
      [root@localhost ~]# systemctl enable mysql
      [root@localhost ~]# systemctl enable mysql

      Interesting fact - the error is printed only in Centos 7.3, not in 7.2.

        Attachments

          Activity

            People

            Assignee:
            evgeniy.patlan Evgeniy Patlan
            Reporter:
            przemyslaw.malkowski@percona.com Przemyslaw Malkowski
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 6 minutes
                6m

                  Smart Checklist