I want to make nginx
service dependent on a service I wrote, say abc.service
. By dependent, I mean:
nginx
service should stop when I stopabc
nginx
service should start when I startabc
A typical way would be to modify /lib/systemd/system/nginx.service
and add Wants abc
directive. However, I don't want to modify nginx.service
file - as this is shipped with nginx package.
Any other way to do this?