Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-33146

mongod.service does not source system-wide environment variables as stated in the documentation

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.0.0-rc0
    • Affects Version/s: 3.2.19, 3.4.11, 3.6.2
    • Component/s: Packaging
    • Labels:
      None
    • Fully Compatible
    • ALL
      • yum install mongodb-enterprise
      • Add kerberos options to /etc/mongod.conf
      • Create keytab
      • Create /etc/sysconfig/mongod with env vars
      • Start service (systemctl start mongod)
    • Build 2018-05-07
    • 3

      Following the Kerberos tutorial I am unable to configure the keytab environment variable for the rpm installed mongod.

      The service file does not source /etc/sysconfig/mongod

      As a workaround I modified the service file to include

      Environment="KRB5_TRACE=/path/to/krb5.log"
      Environment="KRB5_KTNAME=/path/to/keytab"
      

            Assignee:
            mathew.robinson@mongodb.com Mathew Robinson (Inactive)
            Reporter:
            vick.mena Vick Mena (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: