I have this configuration in /etc/network/interfaces:auto loiface lo inet loopbackallow-hotplug wlan0iface wlan0 inet manual    wpa-conf /etc/wpa_supplicant/wpa_supplicant.confallow-hotplug wlan1iface wlan1 inet manual    wpa-conf /etc/wpa_supplicant/wpa_supplicant.confallow-hotplug wlan0#iface wlan0 inet dhcp        iface wlan0 inet static        address 192.168.0.110        netmask 255.255.255.0        network 192.168.0.1        gateway 192.168.0.1        wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf#iface default inet dhcpiface eth0 inet static    address 192.168.0.115    netmask 255.255.255.0    network 192.168.0.1    gateway 192.168.0.1The wireless static IP worked, but the eth0 didn't. So I tried to do the config in /etc/dhcpcd.conf:interface eth0static ip_address=192.168.0.115/24static routers=192.168.0.1static domain_name_servers=192.168.0.1And it worked. I am confused and here are several questions: When to use which file?Why the wifi worked with /etc/network/interfaces but the eth0 didn't? Does dhcpcd has somehow priority over  /etc/network/interface? How to check which service has priority or someting? And whichservice uses /etc/network/interface?
dhcpcd and /etc/network/interfaces
debian;networking;raspbian