I would like to know how I can define in a unit file for a systemd target i.e. /etc/systemd/system/sample.target
that it should be run at the multi-user.target level.
In a unit file for a service I might do something like this
[Install]
WantedBy=multi-user.target
In a target this would clearly not work so I am wondering how I could define this for a target.
I would like to create a target that runs as if it is WantedBy=multi-user.target
.-mean in this context. I know that-means ignore the error, so just curious what the dot does. Also My current work around is to put my target in the/etc/systemd/system/multi-user.target.wants/directory.