I try to set up an Ubuntu server so it start specific services (daemon) only when machine uses specific IP.
The idea is that I have a server to run some service on (and service is RAM-intensive), the server has its static IP. I would like to have copy of that server with different IP (but with all the same software installed on it), and I'd like to have this specific service to start at machine startup only if its IP is the specific one.
This way I can use backup machine for some other purposes (so the hardware will be used anyway), but in the case primary machine fail to run I can manually change the IP of backup machine to IP of the primary, reboot it and have specific service run under same IP.
The Ubuntu is 16.04 LTS.