I have a couple of services using "ExecStart=/usr/bin/java -jar" and I want them to start as late as possible (after network, firewall and login service).
I have tried to list different dependencies in [Unit] both "After" and "Requires", but it doesn't seems to do anything. If I look at the boot log my services starts before all dependencies.
I've tried (for example),
[Unit] Description=My Service 01 Requires=network.target After=systemd-user-sessions.service network.target
I can see that crond starts last in the boot sequence, so I've tried.
[Unit] Description=My Service 02 After=crond.service
No difference... My services starts long before crond.
Any suggestions? Am I doing something wrong? It's the same on both Red Hat 7.2 and 7.3.