I have a project with multiple daemons (around 6) which share many common features (they access the network, create and maintain daemon specific files, access random numbers, etc…), though they each deal with a different set of tasks (monitoring network resources, providing network file sharing services, providing network authentication services, etc).

 

Is it okay to use the interface file to define a set of common properties for these daemons to avoid listing everything out for each daemon? If not the interface file, then how should a common set of patterns for these daemons be defined?

 

I found listing the rules for each daemon to be bug prone and tedious.