Template's rc.local to be copied to AppVMs?

I want my AppVMs to copy the rc.local from the template they are created upon. How do I do this?
For example, I’m creating a my-template(a template) and modify the rc.local to whatever I want. Then, I create my-appvm based on that template, and I want that my-appvm to have the rc.local I defined at my-template.

I need something like skel directory but so it will affect the rc.local file.

I think that you can create a systemd service instead?

See this example:

2 Likes

Yeah, I just thought maybe there’s something like /etc/skel, but I guess there is none. Thanks