this is not sufficient on el7. they are not pure systemd systems, they mix sysv and systemd. (and i think that the presence of chkconfig is a better check for sysv).