Glam Prestige Journal

Bright entertainment trends with youth appeal.

As when adding @ symbol to unit file, it will become a template unit file. Can I do:

sudo systemctl enable my-template@.service

? What will happen if I restarted the server? Would a new service get started using that template file? I need at least one service instance to start, but I am not familiar with template files best approach to solve this.

Any idea?

1

1 Answer

Template units aren't meaningful on their own, as they should contain variables like %i where specific identifiers are filled in.

You would then use a command like:

systemctl enable my-template@some-instance

Exactly what this will be depends on what you have in your '[Instal]' section. See man systemd.unit for more about template units.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy