Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the setting of the default route into this service. This is supposed to replace gateway.service which should be removed, if this is merged. The problem with two different services is, that the system looses the route when network.service is stopped. Currently, gateway.service is also stopped, because of a Requires= dependency, but not restarted, when network.service is restarted. Downgrading the dependency to Wants= wouldn't resolve the problem, because the system looses the route anyway when the ip address is removed. If we make sure, that we add the route every time we set the ip address, we can restart network.service without loosing the default route. The services are not independent anyway, because the gateway ip address must be on a local network and thus match the ip address used by this unit.
- Loading branch information