Restarting syslog separately, delete its socket on teardown

This commit is contained in:
László Károlyi 2019-01-13 21:37:23 +01:00
parent 71705be709
commit 4dc828ae5d
Signed by: karolyi
GPG Key ID: 2DCAF25E55735BFE
2 changed files with 12 additions and 1 deletions

View File

@ -46,6 +46,11 @@
loop_control:
loop_var: mountpoint
- name: Delete syslog socket
file:
path: '{{ dynamic_jails_path }}/{{ jail_id }}/var/run/log'
state: absent
- name: Delete config dir for jail
file:
path: '{{ dynamic_jails_path }}/configs/{{ jail_id }}'

View File

@ -43,5 +43,11 @@
- name: Sending HUP to any any crucial processes to reload their /etc/hosts
command:
/usr/bin/killall -HUP dnsmasq syslogd nginx
/usr/bin/killall -HUP dnsmasq
failed_when: false
- name: Restarting syslog to put its log socket into the new jail
service:
name: syslogd
state: restarted