fastd: fix daemon failing to start after reboot

This commit is contained in:
Markus 2019-03-27 13:31:38 +01:00
parent b166c3fcd4
commit 8f9d46beaf
2 changed files with 2 additions and 3 deletions

View File

@ -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

View File

@ -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 }}