fastd: fix daemon failing to start after reboot
This commit is contained in:
parent
b166c3fcd4
commit
8f9d46beaf
@ -4,6 +4,8 @@ After=network.target
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=notify
|
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
|
ExecStart=/usr/bin/fastd --syslog-level info --syslog-ident fastd@%I -c /etc/fastd/%I/fastd.conf
|
||||||
ExecReload=/bin/kill -HUP $MAINPID
|
ExecReload=/bin/kill -HUP $MAINPID
|
||||||
ExecStopPost=/bin/rm -f /run/fastd-%I.sock
|
ExecStopPost=/bin/rm -f /run/fastd-%I.sock
|
||||||
|
@ -28,9 +28,6 @@
|
|||||||
file: path=/etc/fastd/{{ site_code }}{{ item }}/peers state=directory
|
file: path=/etc/fastd/{{ site_code }}{{ item }}/peers state=directory
|
||||||
with_sequence: start=0 count={{ fastd_instances }}
|
with_sequence: start=0 count={{ fastd_instances }}
|
||||||
|
|
||||||
- name: Create socket directory
|
|
||||||
file: path=/run/fastd owner=fastd group=fastd state=directory
|
|
||||||
|
|
||||||
- name: Configure fastd
|
- name: Configure fastd
|
||||||
template: src=fastd.conf.j2 dest=/etc/fastd/{{ site_code }}{{ item }}/fastd.conf
|
template: src=fastd.conf.j2 dest=/etc/fastd/{{ site_code }}{{ item }}/fastd.conf
|
||||||
with_sequence: start=0 count={{ fastd_instances }}
|
with_sequence: start=0 count={{ fastd_instances }}
|
||||||
|
Loading…
Reference in New Issue
Block a user