I have a server that I'd like to use to listen to Amazon SQS queues for various tasks.
Because the work is parallel, I'd like to have 10 of program "a", 20 of "b", etc.
I created a@.service, b@.service as a template, and then created a-static.service, which has Wants=a@1.service, a@2.service, etc
and a b-static.service, that has b@1.service, etc.
The problem is that when I reboot the host, the jobs don't start. However, if I run systemctl start a-static.service, the jobs do start. (a-static and b-static should start because they have multi-user.target)
So: 1- Why aren't the jobs starting at boot? 2- Is the way that I'm doing the unit template file, and then having the "static" call it multiple times the best way to do it?