coreos / fleet

fleet ties together systemd and etcd into a distributed init system
Apache License 2.0
2.42k stars 302 forks source link

systemd: turn off force flag when calling LinkUnitFiles() #1694

Open dongsupark opened 8 years ago

dongsupark commented 8 years ago

At the moment systemdUnitManager.writeUnit() calls systemd.LinkUnitFiles() with the force flag turned on. This brings negative impact on performance.

So force should be set to false by default. It might be also a good idea to introduce a new option in fleetd.conf, so that users are able to set the flag.

/cc @hectorj2f See also https://github.com/coreos/go-systemd/issues/189