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

import file from init script

    XMLWordPrintable

Details

    Description

      As many other services do (in CentOS), it would be handy if /etc/init.d/mysql could source another script, in which some actions can be done (mount disks, error checking...).

      I suggest the following:

      # Find the name of the script
      NAME=`basename $0`
      # import file if present
      [ -f /etc/sysconfig/${NAME} ] && . /etc/sysconfig/${NAME}

      Attachments

        Issue Links

          Activity

            People

              serg Sergei Golubchik
              superber Alberto
              Votes:
              0 Vote for this issue
              Watchers:
              2 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.