service: fix systemd compilation error with --check
service: add systemd template support
Merge pull request #2491 from tones111/to-upstream

Support systemd template service unit files