Reload postfix service by default.
The postfix service is currently being restarted whenever a config item changes. This is unnecessary as the postfix service can reload a new config. Set reload: True to prevent unnecessary restarts of the service. The old behavior can be restored by setting the pillar key reload_service to False.
This commit is contained in:
parent
3ded29687e
commit
44210a1fe8
@ -36,6 +36,7 @@ postfix:
|
|||||||
chroot: True
|
chroot: True
|
||||||
|
|
||||||
enable_service: True
|
enable_service: True
|
||||||
|
reload_service: True
|
||||||
|
|
||||||
postgrey:
|
postgrey:
|
||||||
enabled: True
|
enabled: True
|
||||||
|
@ -11,6 +11,7 @@ postfix:
|
|||||||
- service: postfix
|
- service: postfix
|
||||||
service.running:
|
service.running:
|
||||||
- enable: {{ salt['pillar.get']('postfix:enable_service', True) }}
|
- enable: {{ salt['pillar.get']('postfix:enable_service', True) }}
|
||||||
|
- reload: {{ salt['pillar.get']('postfix:reload_service', True) }}
|
||||||
- require:
|
- require:
|
||||||
- pkg: postfix
|
- pkg: postfix
|
||||||
- watch:
|
- watch:
|
||||||
|
Loading…
Reference in New Issue
Block a user