Restarting syslog separately, delete its socket on teardown
This commit is contained in:
parent
71705be709
commit
4dc828ae5d
|
@ -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 }}'
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue