Kodi DLNA setting not retained when started automatically

I set up a scheduled task to start Kodi on system startup and run in the background,
The instance of Kodi that is started as a task does not load with the DLNA remote service as configured under settings. Kodi DOES start the DLNA service when run manually, instead.

Any idea about why would Kodi not retain this setting when started automatically?