aboutsummaryrefslogtreecommitdiffstats
path: root/conf/unit/generate-unit-conf
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2018-10-05 16:29:51 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2018-10-05 16:42:58 +0200
commitf03138790d27b2ce28e6db5756b553e0115321f0 (patch)
tree07421f5fab34097b529844df8aa2672e1b999073 /conf/unit/generate-unit-conf
parent91baca1e612e8323885dfcfe17267a96527fa3c5 (diff)
afm-unit.conf: force symbolic link on update
Forcing symbolic link update ensures that if the value changes the link will be overwriten. Otherwise the link always keeps the old path until a system reboot or a manual removal of the link file. Change-Id: Ib9d8f267a8665edd75ce04f77eb70c4b0a4b8e9f Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'conf/unit/generate-unit-conf')
-rw-r--r--conf/unit/generate-unit-conf/provided-binding.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/conf/unit/generate-unit-conf/provided-binding.inc b/conf/unit/generate-unit-conf/provided-binding.inc
index a5636ee..c60b0dc 100644
--- a/conf/unit/generate-unit-conf/provided-binding.inc
+++ b/conf/unit/generate-unit-conf/provided-binding.inc
@@ -24,7 +24,7 @@ After=afm-user-setup@%i.service
[Service]
Type=oneshot
RemainAfterExit=yes
-ExecStart=/bin/ln -s {{:#metadata.install-dir}}/{{value}} USER_RUN_DIR/apis/link/{{name}}
+ExecStart=/bin/ln -sf {{:#metadata.install-dir}}/{{value}} USER_RUN_DIR/apis/link/{{name}}
%end systemd-unit