Ok, after doing some more digging, perhaps systemd generators[1] could be used to generate the unit file dynamically if support exists.
/usr/lib/systemd/system-generators/mcelog-generator.sh:
/usr/sbin/mcelog --is-cpu-supported &> /dev null
if [ $? -eq 0 ]; then
<generate unit file>
fi
Thoughts?
Richard
-- devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/devel Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct