0

I have a service that processes items from a RabbitMQ queue, of which I spool additional instances as the queue grows in size. How can I enable systemd to start a single instance of the unit at startup?

Here's my unit file:

[Unit] Description=A service (%i) to consume items from a queue After=network.target [Service] Type=simple User=root ExecStart=/usr/local/bin/queue-consumer.sh start %i [Install] WantedBy=multi-user.target 

1 Answer 1

3
systemctl enable <servicename>@<instancename> 

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.