Launch daemon not running on boot

launchdmojaveosx-server

I've been following the migration guide for macOS Server and have gotten stuck with the launch .plist for the BIND (named) DNS server. If I name the file the recommended org.isc.named.plist the service will not start on boot, but will run correctly when loaded with sudo launchctl load /Library/LaunchDaemons/org.isc.named.plist. If I rename the file and Label property to anything else it will run correctly on boot.

I have checked if the service is disabled with launchctl print-disabled system and it is not shown.

I have tried on a fresh install of Mojave with only macOS Server installed and was also unsuccessful getting it to run at boot.

Best Answer

Remove the -f option, it's works for me.

<?xml version="1.0" encoding="UTF-8"?>
        <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
   “http://www.apple.com/DTDs/PropertyList-1.0.dtd">
       <plist version="1.0">
            <dict>
               <key>Disabled</key>
               <true/>
               <key>EnableTransactions</key>
               <true/>
               <key>Label</key>
               <string>org.isc.named</string>
               <key>KeepAlive</key>
               <true/>
               <key>ProcessType</key>
               <string>Standard</string>
               <key>Program</key>
               <string>/usr/local/sbin/named</string>
               <key>ProgramArguments</key>
               <array>
               <string>/usr/local/sbin/named</string>
               <string>-c</string>
               <string>/Library/Server/named/named.conf</string>
               </array>
            </dict>
       </plist>
Related Question