On Sat, Dec 8, 2012 at 8:53 AM, Tomáš Chvátal <tomas.chva...@gmail.com> wrote: > Does it really have to be useflag? Can't we simply just install the > file every time like we do with everything else? Logrotate/normal > initscripts/etc/etc. > > There should be no issue with that if we install the service files > every time, they just take few kbs in /etc/
For unit files I'd tend to agree. However, these did not control the installation of unit files (unless I missed something in there). Many controlled whether the package used consolekit vs systemd, so unless somebody defines a common API between them and a virtual a USE flag makes sense. I'm not as certain about the socket file use case. If the use flag is triggering both the installation of a socket file and also the disabling of something else it might be necessary. On the other hand, if it is just toggling between installing the socket file for systemd vs under xinetd.d then it might be safe to just install both since I doubt systemd users are likely to also run xinetd. That might not be a safe assumption - during the transition they might end up running both.