Skip to content

Commit aed76c8

Browse files
committed
Add watch for exim4 service and remove restart by cmd.run
1 parent 973f85c commit aed76c8

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

salt/exim/init.sls

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ exim4_service:
2828
service.running:
2929
- name: exim4
3030
- enable: True
31-
31+
- watch:
32+
- file: /etc/exim4/*
3233

3334
create_dir_dkim:
3435
file.directory:
@@ -80,7 +81,3 @@ exim4_config_localmail:
8081
- mode: replace
8182
- content: 'domainlist local_domains = localhost : localhost.localdomain'
8283
- match: 'domainlist local_domains = MAIN_LOCAL_DOMAINS'
83-
84-
restart_exim:
85-
cmd.run:
86-
- name: service exim4 restart

0 commit comments

Comments
 (0)