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

Validate systemd service file is correct with 'systemd-analyze verify'

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Minor
    • Resolution: Unresolved
    • 10.4
    • 10.6
    • None
    • None

    Description

      Ensure our systemd service files pass validation with https://www.freedesktop.org/software/systemd/man/systemd-analyze.html

      systemd-analyze verify FILE...
      This command will load unit files and print warnings if any errors are detected. Files specified on the command line will be loaded, but also any other units referenced by them. The full unit search path is formed by combining the directories for all command line arguments, and the usual unit load paths (variable $SYSTEMD_UNIT_PATH is supported, and may be used to replace or augment the compiled in set of unit load paths; see systemd.unit(5)). All units files present in the directories containing the command line arguments will be used in preference to the other paths.
      The following errors are currently detected:

      • unknown sections and directives,
      • missing dependencies which are required to start the given unit,
      • man pages listed in Documentation= which are not found in the system,
      • commands listed in ExecStart= and similar which are not found in the system or not executable.

      I already tested but failed to get it even running:

      system 1, virtual machine:

      systemd-analyze verify mariadb.service
      Attempted to remove disk file system, and we can't allow that.
      

      system 2, docker container:

      systemd-analyze verify mariadb.service
      Couldn't move remaining userspace processes, ignoring: Input/output error
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            otto Otto Kekäläinen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

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