Yannick Schinko 42b73f6d0a
Configure a stronger dependency on docker.service in the service file
This commit ensures that the `wings.service` only ever runs when the `docker.service` runs. This is important as the wings daemon severely misbehaves when the docker daemon is not running.

`Requires` makes sure that when `wings.service` is started that `docker.service` is started as well.  
`PartOf` makes sure that when `docker.service` is stopped (for any reason) or restarted, the same happens to `wings.service`

This change is introduced as restarting the docker daemon (for example during an update of docker) causes the wings daemon to enter a broken state, that consumes high amount of CPU and doesn't properly interact with the containers anymore. It never recovers from that state by itself, even after the docker daemon comes back up again. Only way I've found to fix that is by restarting the wings daemon as well, which overall isn't a big deal in the first place. This just adds robostness to the system and preemptively prevents issues that inexperienced sysadmins might have trouble fixing.
2021-03-13 00:07:06 +01:00
..