I had my home server set up with Windows Server 2008 but the boot drive started failing, so I got an SSD and decided to try debian. I got it working through a lot of pain to serve up files to my HTPC. I got a new TV and decided to put the old one in the bedroom hooked directly to the server for some occasional late night watching once it gets cold, so I put Kodi on it and it broke my samba shares. Frustrated, I clean wiped and installed LibreElec, which works great. All the external drives were shared without any additional configuration and easily added to my HTPC via samba and Kodi works fine on the server too, so great.
My question is, is it possible to run LibreElec as a file server without running Kodi when I don't need it and be able to easily start Kodi when I do? I don't like it cranking away in the background. When looking at it on SSH, it was using cpu which I'd like to sit idle if I'm just serving up files. If I can't do that, what's the easiest Linux distro to work with for running Kodi and setting up samba shares without hours of headaches that I had on debian?