From 8f9d46beafda9f92b25a39b69722be2bc44883f7 Mon Sep 17 00:00:00 2001 From: Markus Hauschild Date: Wed, 27 Mar 2019 13:31:38 +0100 Subject: [PATCH] fastd: fix daemon failing to start after reboot --- roles/fastd/files/fastd@.service | 2 ++ roles/fastd/tasks/main.yml | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/roles/fastd/files/fastd@.service b/roles/fastd/files/fastd@.service index 6a158e7..13ef606 100644 --- a/roles/fastd/files/fastd@.service +++ b/roles/fastd/files/fastd@.service @@ -4,6 +4,8 @@ After=network.target [Service] Type=notify +ExecStartPre=/bin/mkdir -p /run/fastd +ExecStartPre=/bin/chown -R fastd:fastd /run/fastd ExecStart=/usr/bin/fastd --syslog-level info --syslog-ident fastd@%I -c /etc/fastd/%I/fastd.conf ExecReload=/bin/kill -HUP $MAINPID ExecStopPost=/bin/rm -f /run/fastd-%I.sock diff --git a/roles/fastd/tasks/main.yml b/roles/fastd/tasks/main.yml index 10f5561..ca64826 100644 --- a/roles/fastd/tasks/main.yml +++ b/roles/fastd/tasks/main.yml @@ -28,9 +28,6 @@ file: path=/etc/fastd/{{ site_code }}{{ item }}/peers state=directory with_sequence: start=0 count={{ fastd_instances }} -- name: Create socket directory - file: path=/run/fastd owner=fastd group=fastd state=directory - - name: Configure fastd template: src=fastd.conf.j2 dest=/etc/fastd/{{ site_code }}{{ item }}/fastd.conf with_sequence: start=0 count={{ fastd_instances }}