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:
- Running
systemctl stop maincauses thisdependentservice to also stop - Running
systemctl restart maincausesdependentservice to also get started
But, running systemctl main start does not cause this dependent service to get started.
How do I do it?