Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-11869

systemd: change Restart=on-failure to on-abort?

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Duplicate
    • 10.1
    • N/A
    • Packaging
    • None

    Description

      While implementing systemd packaging part for MariaDB 10.1 in Debian and while comparing to MySQL 5.7 in Debian/Ubuntu, I noticed that the mysql.service file recommends against using `Restart=on-failure` and instead suggests `on-abort`:

      mysql-server-5.7.mysql.service
      # MySQL systemd service file
       
      [Unit]
      Description=MySQL Community Server
      After=network.target
       
      [Install]
      WantedBy=multi-user.target
       
      [Service]
      User=mysql
      Group=mysql
      PermissionsStartOnly=true
      ExecStartPre=/usr/share/mysql/mysql-systemd-start pre
      ExecStart=/usr/sbin/mysqld
      ExecStartPost=/usr/share/mysql/mysql-systemd-start post
      TimeoutSec=600
      Restart=on-failure
      RuntimeDirectory=mysqld
      RuntimeDirectoryMode=755
      

      (File can be viewed at https://anonscm.debian.org/cgit/pkg-mysql/mysql.git/tree/debian)

      Should we also in MariaDB have `on-abort`?
      Comments danblack svoj ?

      What about the RuntimeDirectory options MySQL 5.7 used in Debian/Ubuntu, should we have them too?

      RuntimeDirectory=mysqld
      RuntimeDirectoryMode=755
      

      Attachments

        Activity

          People

            cvicentiu Vicențiu Ciorbaru
            otto Otto Kekäläinen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.