Can I order the users during init?
I have a setup where multiple users run a single service using Podman and systemd. For example, one user called "mysql" runs the mysqld in an container. Another user called "gitea" runs the gitea service in a podman container. They talk to each other using Unix sockets.
The problem is, I need to ensure mysql is up and running before gitea. Since they run under different users, user level and system level targets (basic.target, default.target) are no good. And I can't use socket activation via .socket files because some services like gitea doesn't support them. I was thinking of making a bunch of helper services that dip in and out of user and system service spaces, like how podman-user-wait-network-online.service works. That feels hacky.
Is there a way I can "order" how systemd starts user instances? For example, have systemd complete starting up the mysql user and its services before starting up the gitea user?