I have a service that depends on another:
[Unit] After=main.service Requires=main.service [Service] ExecStart=/usr/local/bin/dependent Restart=always
The kool things:
systemctl stop maincauses this
dependentservice to also stop
systemctl restart maincauses
dependentservice to also get started
systemctl main start does not cause this dependent service to get started.
How do I do it?